Skip to content

Build your personal knowledge base with Trilium Notes

fix(ckeditor): stop the menus scrolling sideways

Elian Doran6e770ae4858a
diff --git a/apps/client/src/stylesheets/ckeditor-theme.css b/apps/client/src/stylesheets/ckeditor-theme.css
index c7e47ca510..0d0e9eab8b 100644
--- a/apps/client/src/stylesheets/ckeditor-theme.css
+++ b/apps/client/src/stylesheets/ckeditor-theme.css
@@ -185,3 +185,7 @@ div.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {
:root .ck.ck-button.ck-dropdown-menu-list__nested-menu__button > .ck-dropdown-menu-list__nested-menu__button__arrow {
height: var(--ck-dropdown-arrow-size);
}
+
+div.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {
+ overflow-x: clip;
+}
diff --git a/packages/ckeditor5/src/plugins/ai_assistant/theme/ai_assistant.css b/packages/ckeditor5/src/plugins/ai_assistant/theme/ai_assistant.css
index 68c89618ff..0d36567119 100644
--- a/packages/ckeditor5/src/plugins/ai_assistant/theme/ai_assistant.css
+++ b/packages/ckeditor5/src/plugins/ai_assistant/theme/ai_assistant.css
@@ -34,6 +34,7 @@
.ck.ck-dropdown.ck-ai-assistant-quick-actions .ck-dropdown__panel > .ck-list {
max-height: 320px;
+ overflow-x: clip;
overflow-y: auto;
}