Skip to content

Commit

Permalink
Merge pull request #10998 from vynmera/fix-lazy-load-big-images-becau…
Browse files Browse the repository at this point in the history
…se-they-are-a-bit-too-big

[FIX] Preview of large images scrollbars because not resizing the to fit area
  • Loading branch information
engelgabriel authored and sampaiodiego committed Jun 16, 2018
1 parent e5333d4 commit 7897a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

{{#if image_url}}
{{#unless mediaCollapsed}}
<div class="attachment-image">
<div class="attachment-image inline-image">
{{#if loadImage}}
<figure>
{{> lazyloadImage src=image_url preview=image_preview height=(getImageHeight image_dimensions.height) class="gallery-item" title=title description=description}}
Expand Down
4 changes: 2 additions & 2 deletions packages/rocketchat-theme/client/imports/general/base_old.css
Original file line number Diff line number Diff line change
Expand Up @@ -3162,7 +3162,6 @@

& .inline-image {
display: inline-block;
overflow: hidden;

border-radius: 3px;
background-repeat: no-repeat;
Expand All @@ -3175,6 +3174,7 @@
& img {
max-width: 100%;
max-height: 200px;
object-fit: contain;

cursor: pointer;
}
Expand Down Expand Up @@ -3295,7 +3295,7 @@
}

.rc-old .attachment-description {
margin-top: 10px;
margin: 6px;

line-height: 1;
}
Expand Down

0 comments on commit 7897a29

Please sign in to comment.