8
0
Просмотр исходного кода

Fix: Added `min-width` to `.ck-content .media` to allow integration with tables. Closes #44.

Aleksander Nowodzinski 7 лет назад
Родитель
Сommit
4a65f91b18
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      packages/ckeditor5-media-embed/theme/mediaembed.css

+ 4 - 0
packages/ckeditor5-media-embed/theme/mediaembed.css

@@ -14,4 +14,8 @@
 	/* Make sure media is not overriden with Bootstrap default `flex` value.
 	/* Make sure media is not overriden with Bootstrap default `flex` value.
 	See: https://github.com/ckeditor/ckeditor5/issues/1373. */
 	See: https://github.com/ckeditor/ckeditor5/issues/1373. */
 	display: block;
 	display: block;
+
+	/* Give the media some minimal width in the content to prevent them
+	from being "squashed" in tight spaces, e.g. in table cells (#44) */
+	min-width: 15em;
 }
 }