Skip to content

Build your personal knowledge base with Trilium Notes

chore(client): drop CSS comments that restate their rules

Elian Doranba3e57f157e1
diff --git a/apps/client/src/widgets/dialogs/add_link.css b/apps/client/src/widgets/dialogs/add_link.css
index 03e89fab01..1aabe029cd 100644
--- a/apps/client/src/widgets/dialogs/add_link.css
+++ b/apps/client/src/widgets/dialogs/add_link.css
@@ -7,7 +7,7 @@
margin-bottom: 0;
}
- /* Above the width at which Card.css stacks a wide control under its label. */
+ /* Matches the 500px at which Card.css stacks a wide control under its label. */
@container (min-width: 501px) {
:is(.add-link-note, .add-link-url, .add-link-text) {
--add-link-label-width: 8em;
@@ -23,7 +23,6 @@
}
}
- /* Narrower by the indent of the nested row, so its field lines up with the one above. */
.add-link-text.tn-card-section-nested {
--add-link-label-width: calc(8em - var(--card-nested-section-indent));
}
diff --git a/apps/client/src/widgets/type_widgets/text/mobile_editor_toolbar.css b/apps/client/src/widgets/type_widgets/text/mobile_editor_toolbar.css
index 9d0a23d09f..281c892f6e 100644
--- a/apps/client/src/widgets/type_widgets/text/mobile_editor_toolbar.css
+++ b/apps/client/src/widgets/type_widgets/text/mobile_editor_toolbar.css
@@ -114,7 +114,6 @@ body.mobile {
max-height: var(--tn-keyboard-height);
}
- /* With no keyboard up, the menu sets `--tn-keyboard-height` from its own height. */
.dropdown-menu.mobile-bottom-menu.keyboard-panel.keyboard-panel-own-height.show {
height: auto;
max-height: 50vh;
@@ -132,8 +131,7 @@ body.mobile {
animation: tn-keyboard-panel-hold 1.5s;
}
- /* No keyboard comes back under a menu of its own height, and a taller one held here
- covers the toolbar of the next; with no animation, `playClosing()` drops the copy. */
+ /* With no animation, `playClosing()` drops the copy at once. */
&.keyboard-panel-own-height[data-closing] {
animation: none;
}