8
0
Quellcode durchsuchen

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

Piotrek Koszuliński vor 5 Jahren
Ursprung
Commit
ab832a5730
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  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;
 }