Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/ribbon/note info: improve the layout on constrained width

Adorian Doranee40bb3b3323
diff --git a/src/public/stylesheets/theme-next/ribbon.css b/src/public/stylesheets/theme-next/ribbon.css
index 7ecb0dc864..fe83aad34e 100644
--- a/src/public/stylesheets/theme-next/ribbon.css
+++ b/src/public/stylesheets/theme-next/ribbon.css
@@ -80,6 +80,35 @@ div.editability-dropdown a.dropdown-item {
font-size: 0.8em;
}
+/* Narrow width layout */
+.note-info-widget {
+ container: note-info / inline-size;
+}
+
+@container note-info (max-width: 800px) {
+ table, tbody, tr, td, th {
+ display: block;
+ padding: 0 !important;
+ }
+
+ tbody {
+ display: flex;
+ gap: 10px;
+ }
+
+ tr {
+ flex-grow: 1;
+ }
+
+ th {
+ font-size: .85em;
+ }
+
+ td {
+ margin-bottom: .5em;
+ }
+}
+
/*
* Attribute detail dialog
*/