diff --git a/api/collections/fieldLists/cards.yml b/api/collections/fieldLists/cards.yml index b5c8a4c..0502281 100644 --- a/api/collections/fieldLists/cards.yml +++ b/api/collections/fieldLists/cards.yml @@ -61,3 +61,15 @@ id: 8 - name: Immobilienbestand id: 9 + +- name: verticalShift + type: number + meta: + label: Vertikale Verschiebung + helperText: "Die Karte wird um die angegebene Anzahl in Prozent nach oben verschoben." + +- name: horizontalShift + type: number + meta: + label: Horizontale Verschiebung + helperText: "Die Karte wird um die angegebene Anzahl in Prozent nach rechts verschoben." diff --git a/frontend/src/lib/components/widgets/Worldcard/card.svelte b/frontend/src/lib/components/widgets/Worldcard/card.svelte index d2ac625..48b8f64 100644 --- a/frontend/src/lib/components/widgets/Worldcard/card.svelte +++ b/frontend/src/lib/components/widgets/Worldcard/card.svelte @@ -7,7 +7,7 @@ export let selected: boolean[] let props $: { - props = chunkArray([...card.properties], 5) + props = chunkArray([...card.properties], card.properties.length > 8 ? 5 : 4) } function chunkArray(myArray, chunk_size): number[][] { @@ -31,11 +31,15 @@ 'center'};" >