Skip to content

Commit

Permalink
[BUGFIX] #1479 Wrong image width in containers when nesting containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Q4U-mspitz committed Nov 11, 2024
1 parent 02c1cb6 commit 57ca72e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Resources/Private/Layouts/ContentElements/Default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
<bk2k:data.imageVariants as="variants" variants="{variants}" multiplier="{columnConfig.multiplier}" gutters="{columnConfig.gutters}" corrections="{columnConfig.corrections}" />
</f:if>

<f:variable name="colPos" value="{data.colPos}" />
<f:if condition="{containerContext}">
<f:for each="{containerContext}" as="context">
<f:for each="{containerContext}" as="context" reverse="1">
<f:variable name="containerConfig">{settings.responsiveimages.container.{context.CType}}</f:variable>
<f:variable name="containerColumnConfig">{containerConfig.{data.colPos}}</f:variable>
<f:variable name="containerColumnConfig">{containerConfig.{colPos}}</f:variable>
<f:if condition="{containerColumnConfig}">
<bk2k:data.imageVariants as="variants" variants="{variants}" multiplier="{containerColumnConfig.multiplier}" gutters="{containerColumnConfig.gutters}" corrections="{containerColumnConfig.corrections}" />
</f:if>
<f:variable name="colPos" value="{context.colPos}" />
</f:for>
</f:if>

Expand Down

0 comments on commit 57ca72e

Please sign in to comment.