Skip to content

Build your personal knowledge base with Trilium Notes

chore(mobile/attachments): improve layout

Elian Doran026ba5ddce4e
diff --git a/apps/client/src/widgets/type_widgets/Attachment.css b/apps/client/src/widgets/type_widgets/Attachment.css
index 413d294599..c345b77d49 100644
--- a/apps/client/src/widgets/type_widgets/Attachment.css
+++ b/apps/client/src/widgets/type_widgets/Attachment.css
@@ -10,6 +10,12 @@
display: flex;
justify-content: space-between;
align-items: baseline;
+
+ @media (max-width: 991px) {
+ margin-block: 1em;
+ flex-direction: column;
+ gap: 0.5em;
+ }
}
/* #endregion */
@@ -42,6 +48,12 @@
display: flex;
align-items: center;
gap: 1em;
+
+ @media (max-width: 991px) {
+ gap: 0.5em;
+ flex-wrap: wrap;
+ .attachment-title { flex-grow: 1; }
+ }
}
.attachment-details {