浏览代码

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

Maciej Gołaszewski 6 年之前
父节点
当前提交
961b368503
共有 1 个文件被更改,包括 5 次插入1 次删除
  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;