Selaa lähdekoodia

Extract --ck-mention-list-max-height CSS variable to control height of mentions view.

Maciej Gołaszewski 6 vuotta sitten
vanhempi
commit
961b368503
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      packages/ckeditor5-mention/theme/mentionui.css

+ 5 - 1
packages/ckeditor5-mention/theme/mentionui.css

@@ -3,8 +3,12 @@
  * For licensing, see LICENSE.md.
  */
 
+:root {
+	--ck-mention-list-max-height: 300px;
+}
+
 .ck.ck-mentions {
-	max-height: 300px;
+	max-height: var(--ck-mention-list-max-height);
 
 	overflow-y: auto;