Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(promoted attributes): lay the cells out in a row under every theme (closes #8195)
Elian Doranbd5292170cd5
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.cssindex 1b388d7cfb..a52181441e 100644--- a/apps/client/src/stylesheets/theme-next/shell.css+++ b/apps/client/src/stylesheets/theme-next/shell.css@@ -1483,7 +1483,8 @@ body.experimental-feature-new-layout #center-pane .note-split > div.alert {/* The promoted attributes section */div.promoted-attributes-container {- display: flex;+ /* The cards are sized by the container query below instead of wrapping. */+ flex-wrap: nowrap;margin-inline-end: 10%;padding: 6px 0;gap: 8px;diff --git a/apps/client/src/widgets/PromotedAttributes.css b/apps/client/src/widgets/PromotedAttributes.cssindex c94381b0ad..558657df69 100644--- a/apps/client/src/widgets/PromotedAttributes.css+++ b/apps/client/src/widgets/PromotedAttributes.css@@ -8,12 +8,14 @@ body.mobile .promoted-attributes-widget {contain: none;}+/* The cells lay out as a row here rather than in whichever theme happens to be loaded: as a table with+ flex cells, each one took an anonymous row of its own and the attributes stacked one per line. */.promoted-attributes-container {margin: 0 1.5em;overflow: auto;max-height: 400px;+ display: flex;flex-wrap: wrap;- display: table;}body.experimental-feature-new-layout .promoted-attributes-container {