Skip to content

Commit 9b0ccf4

Browse files
mesosadmh
authored andcommitted
[BUGFIX] change maxWidth and add maxHeight to use correct parameter (#481)
1 parent 6c65146 commit 9b0ccf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/Private/Templates/ContentElements/ContactsCard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="contacts-card__contacts-photo _img-overlay {f:cObject(typoscriptObjectPath:'lib.responsiveContactCards', data:image.uid)}"></div>
1616
</f:then>
1717
<f:else>
18-
<f:image class="img-responsive contacts-card__contacts-photo" image="{image}" maxWidth="{settings.defaultWidth}" cropVariant="default" />
18+
<f:image class="img-responsive contacts-card__contacts-photo" image="{image}" maxWidth="{data.imagewidth}" maxHeight="{data.imageheight}" cropVariant="default" />
1919
</f:else>
2020
</f:if>
2121
</f:if>

0 commit comments

Comments
 (0)