Skip to content

Build your personal knowledge base with Trilium Notes

fix(next): another non-performant CSS selector

Elian Dorand45ff6cca5a3
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css
index fde7ceeee4..2dfdadfbc5 100644
--- a/apps/client/src/stylesheets/theme-next/shell.css
+++ b/apps/client/src/stylesheets/theme-next/shell.css
@@ -76,7 +76,8 @@ body.background-effects.platform-win32.layout-vertical #vertical-main-container
--tab-first-item-horiz-offset: 5px;
}
-:has(#left-pane.hidden-int) #launcher-pane.vertical {
+/* Add a border to the vertical launch bar if collapsed. */
+body.layout-vertical #horizontal-main-container:has(#left-pane.hidden-int) #launcher-pane.vertical {
border-right: 2px solid var(--left-pane-collapsed-border-color);
}