style(ckeditor5/codeblock): limit language selector height

This commit is contained in:
Elian Doran 2025-05-26 12:35:30 +03:00
parent 622d026efc
commit 4752db6bc5
No known key found for this signature in database
3 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import "ckeditor5/ckeditor5.css";
import "./theme/code_block_toolbar.css";
import { COMMON_PLUGINS, CORE_PLUGINS, POPUP_EDITOR_PLUGINS } from "./plugins";
import { BalloonEditor, DecoupledEditor, FindAndReplaceEditing, FindCommand } from "ckeditor5";
export { EditorWatchdog } from "ckeditor5";

View File

@ -18,6 +18,7 @@ export default class CodeBlockToolbar extends Plugin {
"|",
"copyToClipboard"
],
balloonClassName: "ck-toolbar-container codeblock-language-list",
getRelatedElement(selection) {
const selectionPosition = selection.getFirstPosition();
if (!selectionPosition) {

View File

@ -0,0 +1,4 @@
.ck.ck-balloon-panel.codeblock-language-list .ck-dropdown__panel {
max-height: 300px;
overflow-y: auto;
}