8
0
Quellcode durchsuchen

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

dkonopka vor 6 Jahren
Ursprung
Commit
0d9750b65c
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  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). */
 		max-width: 100%;
+
+		/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */
+		min-width: 50px;
 	}
 }