Skip to content

Build your personal knowledge base with Trilium Notes

style(relation_map): drop CSS comments that restate the rules

Elian Doran1492baac6d97
diff --git a/apps/client/src/widgets/note_card.css b/apps/client/src/widgets/note_card.css
index 659adb9a74..8f81fa2531 100644
--- a/apps/client/src/widgets/note_card.css
+++ b/apps/client/src/widgets/note_card.css
@@ -16,12 +16,10 @@
--board-item-hover-background-saturation: 100%;
--board-item-hover-background-lightness: 98.5%;
- /* Shadow of a card. */
--board-item-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
/* Shadow of a hovered card. A variable of its own, so a selected card can combine it with the
selection ring. */
--board-item-hover-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
- /* Selection ring of a selected card. */
--board-selected-ring-color: var(--link-color);
/* Text and muted text colors of a card without a hue. A card with a hue uses colors composed
diff --git a/apps/client/src/widgets/type_widgets/relation_map/NoteBox.css b/apps/client/src/widgets/type_widgets/relation_map/NoteBox.css
index 4dc2d9568d..324633db2d 100644
--- a/apps/client/src/widgets/type_widgets/relation_map/NoteBox.css
+++ b/apps/client/src/widgets/type_widgets/relation_map/NoteBox.css
@@ -1,5 +1,4 @@
.note-detail-relation-map .note-box {
- /* Darker than on a board: the cards stand on the bare note background, not in a column. */
--board-item-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
--board-item-hover-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
@@ -11,7 +10,6 @@
box-sizing: border-box;
min-width: 150px;
max-width: 200px;
- /* Room at the end for the `.endpoint` relation handle. */
padding: 0.6em 1.8em 0.6em 0.6em;
font-size: 0.9em;
line-height: 1.2;
diff --git a/apps/client/src/widgets/type_widgets/relation_map/NotePane.css b/apps/client/src/widgets/type_widgets/relation_map/NotePane.css
index 6541366f62..31ff9daf5a 100644
--- a/apps/client/src/widgets/type_widgets/relation_map/NotePane.css
+++ b/apps/client/src/widgets/type_widgets/relation_map/NotePane.css
@@ -7,7 +7,7 @@
.relation-map-wrapper .relation-map-note-pane {
position: absolute;
top: var(--relation-map-inset);
- /* Room for the toolbars at the bottom of the map. */
+ /* Must agree with `MAP_FOOT` in utils.ts. */
bottom: calc(2 * var(--relation-map-inset) + var(--overlay-button-height, 28px));
inset-inline-end: var(--relation-map-inset);
width: var(--relation-map-pane-width);