Skip to content

Commit

Permalink
FEATURE Use FocusFill (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish authored Oct 23, 2023
1 parent 2d94e64 commit 28eeaa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"require": {
"dnadesign/silverstripe-elemental": "^5",
"dynamic/silverstripe-elemental-baseobject": "^4",
"jonom/focuspoint": "^5.0",
"silverstripe/framework": "^5",
"symbiote/silverstripe-gridfieldextensions": "^4"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="row">
<% if $Image %>
<div class="col-md-5 img-side">
<img src="$Image.Fill(520,420).URL" class="img-fluid" alt="$Image.Title.ATT">
<img src="$Image.FocusFill(520,420).URL" class="img-fluid" alt="$Image.Title.ATT">
</div>
<div class="col-md-7">
<% else %>
Expand Down

0 comments on commit 28eeaa8

Please sign in to comment.