Skip to content

Build your personal knowledge base with Trilium Notes

style(code): shorten the tooltip host CSS comment

Claude0883e93a4132
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 7f0f83e78a..01774642ea 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -646,9 +646,8 @@ body.mobile .dropdown-menu .dropdown-submenu {
}
}
-/* CodeMirror renders its tooltips into this element rather than into `.cm-editor`, which clips them
- (see `getTooltipHost()` in `packages/codemirror`). The stacking context has to clear the dialogs an
- editor can sit in, up to 1101, and stay under the context menu at 2500. */
+/* `getTooltipHost()` renders CodeMirror tooltips here, outside the clipping `.cm-editor`.
+ Must stay above dialogs (1101) and below the context menu (2500). */
.cm-tooltip-host {
position: absolute;
top: 0;