浏览代码

Added `min-width` to `<img>`.

dkonopka 6 年之前
父节点
当前提交
0d9750b65c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/ckeditor5-image/theme/image.css

+ 3 - 0
packages/ckeditor5-image/theme/image.css

@@ -20,5 +20,8 @@
 
 
 		/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */
 		/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */
 		max-width: 100%;
 		max-width: 100%;
+
+		/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */
+		min-width: 50px;
 	}
 	}
 }
 }