Skip to content

Commit

Permalink
Fix scaled.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Sep 7, 2024
1 parent 3984fd8 commit 332481d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@
position: relative;
}

.format-grid .thegrid .grid-image.grid-scaled {
height: 100%;
}

/*rtl:begin:ignore*/
.format-grid .thegrid .grid-image.grid-scaled img {
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%,-50%);
}
/*rtl:end:ignore*/

.format-grid .thegrid .grid-generatedimage {
background-size: contain;
height: 100%;
Expand Down
2 changes: 1 addition & 1 deletion templates/grid.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</div>
<div class="grid-image-container">
{{#imageuri}}
<div class="grid-image text-center">
<div class="grid-image{{^imageresizemethodcrop}} grid-scaled{{/imageresizemethodcrop}} text-center">
<img{{#imageresizemethodcrop}} class="card-img-bottom" {{/imageresizemethodcrop}} src="{{imageuri}}" alt="{{imagealttext}}" loading="lazy">
{{#sectioncompletionmarkup}}{{{sectioncompletionmarkup}}}{{/sectioncompletionmarkup}}
</div>
Expand Down

0 comments on commit 332481d

Please sign in to comment.