Skip to content

Build your personal knowledge base with Trilium Notes

fix(launch-bar): center the calendar launcher's icon in every theme

Elian Doran2a5885f9eb2f
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index 444579bda1..a8d104fa9c 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -2179,8 +2179,11 @@ pre.code-embed-editor > .cm-editor:not(.cm-focused) {
#launcher-pane .launcher-button {
font-size: 150%;
+ /* Matches the `line-height: 1` boxicons gives an icon-only launcher, so an icon in a child
+ span, as in a dropdown launcher, centers the same way. */
+ line-height: 1;
display: inline-block;
- padding: 13px 13px;
+ padding: 0;
cursor: pointer;
border: none;
color: var(--launcher-pane-text-color);
@@ -2188,6 +2191,12 @@ pre.code-embed-editor > .cm-editor:not(.cm-focused) {
flex-shrink: 0;
}
+#launcher-pane div.launcher-button {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
#launcher-pane.vertical .launcher-button {
width: 100%;
height: 53px;
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css
index 7fb9314e6b..41434c45f7 100644
--- a/apps/client/src/stylesheets/theme-next/shell.css
+++ b/apps/client/src/stylesheets/theme-next/shell.css
@@ -285,12 +285,6 @@ body.layout-horizontal > .horizontal {
box-shadow 100ms ease-in;
}
-#launcher-pane div.launcher-button {
- display: flex;
- justify-content: center;
- align-items: center;
-}
-
#launcher-pane .launcher-button {
font-size: var(--launcher-pane-icon-size) !important;
}