Skip to content

Commit aef72df

Browse files
committed
[browsermedia#664] FIX: Image blocks were oversized
* Fixed issue where image blocks viewed with the CMS were too big for their space. Works with both 'too large' and 'too small' images.
1 parent a6ebcdc commit aef72df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/assets/stylesheets/cms/styles/_images.css.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ img {
44
height: auto;
55
display: inline-block;
66
}
7+
8+
// Image blocks viewed within the CMS shouldn't be 100% width.
9+
img[data-type="image_block"] {
10+
width: auto;
11+
max-width: 100%;
12+
}
13+
714
.img-rounded {
815
@include border-radius(6px);
916
}

0 commit comments

Comments
 (0)