ttt
All checks were successful
deploy to production / deploy (push) Successful in 37s

This commit is contained in:
Robin Grenzdörfer 2023-09-05 13:40:05 +00:00
parent e4b6334d85
commit 8e3abd56c1
2 changed files with 15 additions and 0 deletions

View File

@ -51,6 +51,12 @@ subFields:
label: Zeile normal umbrechen label: Zeile normal umbrechen
helperText: "Ist dies aktiviert, so wird die Zeile normal und nicht reverse umgebrochen." helperText: "Ist dies aktiviert, so wird die Zeile normal und nicht reverse umgebrochen."
- name: twoToThree
type: boolean
meta:
label: Zwei zu drei
helperText: "Ist dies aktiviert, so wird die Zeile in zwei zu drei Spalten aufgeteilt."
- name: columns - name: columns
type: object[] type: object[]
meta: meta:

View File

@ -66,6 +66,7 @@
{/if} {/if}
<div <div
class="row" class="row"
class:twoToThree="{row.twoToThree}"
class:normalWrap="{row.flexWrapNormal}" class:normalWrap="{row.flexWrapNormal}"
class:dominant="{row.columns.some((col) => col.contentType == 'iconCycleCircle')}" class:dominant="{row.columns.some((col) => col.contentType == 'iconCycleCircle')}"
> >
@ -171,6 +172,14 @@
align-items: flex-start; align-items: flex-start;
flex-wrap: wrap; flex-wrap: wrap;
gap: 20px; gap: 20px;
&.towToThree {
.col:nth-child(1) {
flex: 2;
}
.col:nth-child(2) {
flex: 3;
}
}
&.dominant { &.dominant {
@media (max-width: 1024px) { @media (max-width: 1024px) {
flex-direction: row-reverse; flex-direction: row-reverse;