Parcourir la source

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

Maciej Gołaszewski il y a 6 ans
Parent
commit
961b368503
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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;