Skip to content

Build your personal knowledge base with Trilium Notes

fix(text): let the inline icon picker reach its balloon's edges

Elian Doranccde0c20f3ff
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index ef42815279..e680b1155c 100644
--- a/apps/client/src/stylesheets/theme-next/notes/text.css
+++ b/apps/client/src/stylesheets/theme-next/notes/text.css
@@ -151,6 +151,16 @@ body.background-effects .ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__pane
backdrop-filter: none;
}
+/* Inline icon picker: the icon grid scrolls, so it runs to the balloon's edges. */
+:root .ck.ck-balloon-panel:has(.icon-picker-balloon) {
+ --ck-editor-popup-padding: 0px;
+}
+
+.ck.ck-balloon-panel .icon-picker-balloon {
+ border-radius: calc(var(--dropdown-border-radius) - 1px);
+ overflow: clip;
+}
+
/* Submenu arrow */
:root .ck.ck-button.ck-dropdown-menu-list__nested-menu__button > .ck-dropdown-menu-list__nested-menu__button__arrow {
color: var(--menu-item-arrow-color);