浏览代码

Copied the fix for no min-width from media embed.

Piotrek Koszuliński 5 年之前
父节点
当前提交
ab832a5730
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/ckeditor5-html-embed/theme/htmlembed.css

+ 4 - 0
packages/ckeditor5-html-embed/theme/htmlembed.css

@@ -32,4 +32,8 @@
 .ck-content .raw-html-embed {
 	/* Give the embed some air. */
 	margin: 1em auto;
+
+	/* Give the html embed some minimal width in the content to prevent them
+	from being "squashed" in tight spaces, e.g. in table cells (https://github.com/ckeditor/ckeditor5/issues/8331) */
+	min-width: 15em;
 }