Skip to content

Build your personal knowledge base with Trilium Notes

fix(slash): layout on legacy theme

Elian Doranc4c7321f6000
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index cfb00b594a..388ab77185 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -1274,6 +1274,26 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
white-space: normal !important;
}
+/* Slash commands */
+
+.ck.ck-slash-command-button {
+ padding: 0.5em 1em !important;
+}
+
+.ck.ck-slash-command-button__text-part {
+ margin-left: 0.5em;
+ line-height: 1.2em !important;
+}
+
+.ck.ck-slash-command-button__text-part > span {
+ line-height: inherit !important;
+}
+
+.ck.ck-slash-command-button__text-part .ck.ck-slash-command-button__description {
+ display: block;
+ opacity: 0.8;
+}
+
.area-expander {
display: flex;
flex-direction: row;
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 0a259ed7f8..404a47feca 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -202,28 +202,10 @@
}
/* Slash commands */
-.ck.ck-slash-command-button {
- padding: 0.5em 1em !important;
-}
-
-.ck.ck-slash-command-button__text-part {
- margin-left: 0.5em;
- line-height: 1.2em !important;
-}
-
-.ck.ck-slash-command-button__text-part > span {
- line-height: inherit !important;
-}
-
.ck.ck-slash-command-button__text-part .ck.ck-button__label {
font-weight: bold;
}
-.ck.ck-slash-command-button__text-part .ck.ck-slash-command-button__description {
- display: block;
- opacity: 0.8;
-}
-
/* Separator */
:root .ck .ck-list__separator {
margin: .5em 0;