Procházet zdrojové kódy

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

dkonopka před 6 roky
rodič
revize
0d9750b65c
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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;
 	}
 }