Skip to content

Build your personal knowledge base with Trilium Notes

fix(board): lead a top-down collapsed header with its icon (#11749)

Elian Doran0c5ca8c9f327
diff --git a/apps/client/src/widgets/collections/board/index.css b/apps/client/src/widgets/collections/board/index.css
index 087682b41c..feef8bc626 100644
--- a/apps/client/src/widgets/collections/board/index.css
+++ b/apps/client/src/widgets/collections/board/index.css
@@ -1509,6 +1509,16 @@ body.mobile .column-drop-placeholder {
transform: rotate(90deg);
}
+/* Read top-down, the header leads with the icon as it does when expanded. Sorted last and then
+ reversed, the menu stays on top, where it is on every other board. */
+.board-view-container.cjk-titles .board-column.collapsed h3 {
+ flex-direction: column-reverse;
+}
+
+.board-view-container.cjk-titles .board-column.collapsed h3 > .column-menu {
+ order: 1;
+}
+
/* Swapped: `padding` is physical, so it does not turn with the count. */
.board-view-container .board-column.collapsed h3 > .counter-badge {
padding: 0.6em 0.1em;