From aa7ea5ef935f8924fe92aded7cf74267dcd328f9 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Sun, 23 Mar 2025 21:35:37 +0100 Subject: [PATCH] fix(front): [WIP] improve page layout --- front/src/App.vue | 34 +++++++++++++++--------------- front/src/composables/alignment.ts | 6 +++--- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/front/src/App.vue b/front/src/App.vue index cf46627b8..48cef6a84 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -101,32 +101,32 @@ store.dispatch('auth/fetchUser') - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/front/src/composables/alignment.ts b/front/src/composables/alignment.ts index 8e857a5ca..a925ab665 100644 --- a/front/src/composables/alignment.ts +++ b/front/src/composables/alignment.ts @@ -2,7 +2,7 @@ import type { Entries, Entry, KeysOfUnion } from 'type-fest' import type { HTMLAttributes } from 'vue' export type AlignmentProps = { - alignText?: 'left' | 'center' | 'right' | 'stretch' | 'space-out', + alignText?: 'start' | 'center' | 'end' | 'stretch' | 'space-out', alignSelf?: 'start' | 'center' | 'end' | 'auto' | 'baseline' | 'stretch', alignItems?: 'start' | 'center' | 'end' | 'auto' | 'baseline' | 'stretch' } & { @@ -14,10 +14,10 @@ const styles = { center: 'place-content: center center; place-self: center center;', stretch: 'place-content: stretch stretch; place-self: stretch stretch;', alignText: (a:AlignmentProps['alignText']) => ({ - left: 'justify-content: flex-start;', + start: 'justify-content: flex-start;', center: 'place-content: center;', baseline: 'align-items: baseline;', - right: 'justify-content: flex-end;', + end: 'justify-content: flex-end;', stretch: 'place-content: stretch;', 'space-out': 'place-content: space-between;' }[a!]),