瀏覽代碼

Fix (image) unnecessary margin.

panr 5 年之前
父節點
當前提交
9f5248d9df
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      packages/ckeditor5-image/theme/image.css

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

@@ -24,4 +24,10 @@
 		/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */
 		min-width: 50px;
 	}
+
+	/* Reduces unnecessary margin under the linked image. */
+	& > a {
+		display: block;
+		line-height: 0;
+	}
 }