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
client/collections/board: improve comments
Adorian Doranb1ebb3bf6f86
diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.cssindex 2c86dd880d..cc77b2ed58 100644--- a/apps/client/src/stylesheets/theme-next-dark.css+++ b/apps/client/src/stylesheets/theme-next-dark.css@@ -426,10 +426,8 @@--board-drop-hint-background-lightness: 45%;--board-drop-hint-color: #ffffffc9;- /* Darker than the default: the board is already dark, so a lighter wash barely shows. */--board-edit-backdrop: rgba(0, 0, 0, 0.3);- /* White rather than the default black, which sinks into a dark column instead of marking it. */--board-drop-placeholder-background: rgba(255, 255, 255, 0.1);--board-column-drop-placeholder-background: rgba(255, 255, 255, 0.06);diff --git a/apps/client/src/widgets/collections/board/index.spec.tsx b/apps/client/src/widgets/collections/board/index.spec.tsxindex 1a55790bda..0870fcf680 100644--- a/apps/client/src/widgets/collections/board/index.spec.tsx+++ b/apps/client/src/widgets/collections/board/index.spec.tsx@@ -5290,12 +5290,12 @@ describe("Selection mode on mobile", () => {await setup();expect(container.querySelector(".board-selection-toggle")).toBeNull();- // The board offers these over its bottom corner instead, outside the header.+ // Off mobile they are drawn in `OverlayControlGroup`, outside `.board-header-tools`.expect(container.querySelector(".board-header-tools button.bx-collapse-alt")).toBeNull();expect(container.querySelector(".board-header-tools button.bx-expand-alt")).toBeNull();});- /** What the desktop offers over the board's bottom corner, which a phone has no room for. */+ /** `onCollapseAll` and `onExpandAll`, which only the header carries on mobile. */it("closes and opens every column from the header", async () => {await setup();const columns = () => [ ...container.querySelectorAll(".board-column") ];diff --git a/apps/client/src/widgets/collections/board/selection_bar.tsx b/apps/client/src/widgets/collections/board/selection_bar.tsxindex 552e55dfb8..be4fc7950f 100644--- a/apps/client/src/widgets/collections/board/selection_bar.tsx+++ b/apps/client/src/widgets/collections/board/selection_bar.tsx@@ -18,7 +18,7 @@ interface BoardHeaderToolsProps {onSelectColumn: () => void;/** Drops the selection and ends selection mode, the bar covering the button that started it. */onReset: () => void;- /** Closes every column at once. On the desktop the board offers this over its bottom corner. */+ /** Collapses every column. Off mobile `index.tsx` draws the same pair in `OverlayControlGroup`. */onCollapseAll: () => void;onExpandAll: () => void;}