diff --git a/front/src/components/ui/layout/Section.vue b/front/src/components/ui/layout/Section.vue index 4a4346ea9..78aff40e6 100644 --- a/front/src/components/ui/layout/Section.vue +++ b/front/src/components/ui/layout/Section.vue @@ -7,7 +7,7 @@ import Button from '~/components/ui/Button.vue' import Link from '~/components/ui/Link.vue' const props = defineProps<{ - [M in 'tiny-items' | 'small-items' | 'medium-items']?: true } + [M in 'no-items' | 'tiny-items' | 'small-items' | 'medium-items']?: true } & { alignLeft?: boolean;} & { [H in 'h1' | 'h2' | 'h3']?: string } & { action?: { text: string } & (RouterLinkProps | { onClick: (...args: any[]) => void | Promise }) }>() @@ -18,7 +18,8 @@ const [headingLevel, title] = : ['h3', props.h3] const numberOfColumnsPerItem = - 'tinyItems' in props && props.tinyItems ? 2 : 'smallItems' in props && props['smallItems'] ? 3 : 4 + 'noItems' in props && props.noItems ? 1 : 'tinyItems' in props && props.tinyItems ? 2 : 'smallItems' in props && props['smallItems'] ? 3 : 4 + const headerGrid = `auto / repeat(auto-fit, calc(46px * ${numberOfColumnsPerItem} + 32px * ${numberOfColumnsPerItem - 1}))` @@ -27,7 +28,8 @@ const headerGrid =