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: fix an issue
Adorian Doran5430d278c3f9
diff --git a/apps/client/src/widgets/collections/board/index.css b/apps/client/src/widgets/collections/board/index.cssindex 106c7b7035..523dcf897a 100644--- a/apps/client/src/widgets/collections/board/index.css+++ b/apps/client/src/widgets/collections/board/index.css@@ -252,7 +252,6 @@ body.mobile .board-view-container .board-add-column {.board-view-container .board-note,.board-view-container .board-new-item.editing {box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);- margin-block: 0.65em;padding: var(--card-padding);border-radius: 5px;position: relative;@@ -313,10 +312,6 @@ body.mobile .board-view-container .board-add-column {);}-.board-view-container .board-note:first-of-type {- margin-top: 0;-}-/* The outline of whatever is focused within, taking the hue of the nearest thing that has one: thecolumn for its header and buttons, the card for itself and what it holds. */.board-view-container .board-column.with-hue {@@ -344,7 +339,10 @@ body.mobile .board-view-container .board-add-column {}.board-view-container .board-note {- transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease, margin-top 0.2s ease;+ /* Below only: a top margin would be the first card's to drop, and a drop placeholder standing+ above it takes that place and moves the card down by it. */+ margin-block: 0 0.65em;+ transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;}.board-view-container .board-column.board-column-archived {@@ -507,12 +505,16 @@ body.mobile .board-view-container .board-add-column {.board-drop-placeholder {height: 40px;- margin: 0.65em 0;+ /* The gap below is the card's, in em, so it has to be read at the card's own font size. */+ font-size: var(--card-font-size);+ margin-block: 0 0.65em;padding: 0.5em;border-radius: 5px;background-color: rgba(0, 0, 0, 0.15);opacity: 0;- transition: opacity 0.15s ease, height 0.2s ease;+ /* Opacity only: the height is the carried card's, so any change in it is a mismatch to see+ rather than a movement to smooth over. */+ transition: opacity 0.15s ease;box-sizing: border-box;}@@ -540,7 +542,7 @@ body.mobile .board-view-container .board-add-column {border-radius: 5px;color: var(--muted-text-color);cursor: pointer;- transition: all 0.2s ease;+ transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;background-color: transparent;font-size: var(--card-font-size);}