From fce2709b9f349c4f9f5a09fb4ce09b80b7500d20 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Thu, 9 Jan 2025 15:14:21 +0100 Subject: [PATCH] fix(ui): regression in `Layout grid` --- front/src/components/ui/Layout.vue | 6 +++--- front/ui-docs/components/ui/layout.md | 2 +- front/ui-docs/components/ui/layout/columns.md | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/front/src/components/ui/Layout.vue b/front/src/components/ui/Layout.vue index 0b1943d79..6061f9aca 100644 --- a/front/src/components/ui/Layout.vue +++ b/front/src/components/ui/Layout.vue @@ -25,9 +25,9 @@ const attributes = computed(() => ({ ...color(props)(width(props)()), layout: props.grid === true ? 'grid' : - props.grid ? 'grid-custom' : - props.flex ? 'flex' : - props.columns ? 'columns' : + typeof props.grid === 'string' ? 'grid-custom' : + props.flex === true ? 'flex' : + props.columns=== true ? 'columns' : 'stack' })) diff --git a/front/ui-docs/components/ui/layout.md b/front/ui-docs/components/ui/layout.md index e7af845dc..ced7f8a5e 100644 --- a/front/ui-docs/components/ui/layout.md +++ b/front/ui-docs/components/ui/layout.md @@ -43,7 +43,7 @@ The following containers are responsive. Change your window's size or select a d