Skip to content

Commit

Permalink
FEATURE require Focuspoint, auto-crop images (#30)
Browse files Browse the repository at this point in the history
remove `mb-3` on .element__features__list
  • Loading branch information
jsirish authored Sep 14, 2023
1 parent 15d8833 commit df4f16e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"require": {
"dnadesign/silverstripe-elemental": "^5",
"dynamic/silverstripe-elemental-baseobject": "^4",
"jonom/focuspoint": "^5.0",
"silverstripe/framework": "^5"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% if $Content %><div class="element__content">$Content</div><% end_if %>

<% if $FeaturesList %>
<div class="row mb-3 g-0 element__features__list">
<div class="row g-0 element__features__list">
<% if $Alternate %>
<% loop $FeaturesList %>
<% include FeaturesListAlternating %>
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/FeaturesList.ss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="row g-0 feature-item">
<% if $Image %>
<div class="col-md-5">
<img src="$Image.URL" class="img-fluid rounded-start" alt="$Image.Title.ATT">
<img src="$Image.FocusFill(800,550).URL" class="img-fluid rounded-start" alt="$Image.Title.ATT">
</div>
<div class="card-body col-md-7">
<% else %>
Expand Down
4 changes: 2 additions & 2 deletions templates/Includes/FeaturesListAlternating.ss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div class="row g-0 feature-item alternating">
<% if $Image %>
<div class="col-md-5">
<img src="$Image.URL" class="img-fluid" alt="$Image.Title.ATT">
<img src="$Image.FocusFill(800,550).URL" class="img-fluid" alt="$Image.Title.ATT">
</div>
<div class="card-body col-md-7<% if $Odd %> order-first<% end_if %>">
<div class="card-body col-md-7<% if $Even %> order-first<% end_if %>">
<% else %>
<div class="card-body col-md-12">
<% end_if %>
Expand Down

0 comments on commit df4f16e

Please sign in to comment.