瀏覽代碼

Table selection handler should not be truncated inside block quote and as first child in the content.

dkonopka 7 年之前
父節點
當前提交
b8aa8f6592
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      packages/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css

+ 8 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css

@@ -23,3 +23,11 @@
 		}
 	}
 }
+
+.ck-editor__editable > .table:first-child,
+.ck-editor__editable blockquote > .table:first-child {
+	/* `16px` = var(--ck-widget-handler-icon-size) - table selection handler height.
+	https://github.com/ckeditor/ckeditor5-block-quote/issues/28
+	https://github.com/ckeditor/ckeditor5-widget/issues/44 */
+	margin-top: calc(1em + var(--ck-widget-handler-icon-size) );
+}