소스 검색

Fix: The image goes beyond the boundaries of the parent block. Closes #67.

Piotr Jasiun 9 년 전
부모
커밋
35ba2c5f99
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      packages/ckeditor5-image/theme/imagecaption/theme.scss
  2. 3 0
      packages/ckeditor5-image/theme/theme.scss

+ 0 - 1
packages/ckeditor5-image/theme/imagecaption/theme.scss

@@ -22,6 +22,5 @@
 			@include ck-box-shadow( $ck-inner-shadow );
 			background-color: ck-color( 'background' );;
 		}
-
 	}
 }

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

@@ -37,4 +37,7 @@
 
 	// Center the image if its width is smaller than content's width.
 	margin: 0 auto;
+
+	// Make sure the image never exceeds the size of the parent container (#67).
+	max-width: 100%;
 }