From 72649a48e3a3fc074f3807721f2e30bbaf9a3933 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 6 Jan 2025 23:26:55 +0100 Subject: [PATCH] refactor(ui): additional size props for button, input and link --- front/src/components/ui/Button.vue | 30 ++++++------- front/src/components/ui/Layout.vue | 6 +-- front/src/components/ui/Link.vue | 11 +++-- front/src/composables/width.ts | 20 ++++++++- front/src/ui/components/Sidebar.vue | 34 +++------------ front/src/ui/components/UserMenu.vue | 5 +-- front/ui-docs/using-width.md | 63 ++++++++++++++++++++++++++++ 7 files changed, 110 insertions(+), 59 deletions(-) diff --git a/front/src/components/ui/Button.vue b/front/src/components/ui/Button.vue index b95c65bfc..3a8da2368 100644 --- a/front/src/components/ui/Button.vue +++ b/front/src/components/ui/Button.vue @@ -38,11 +38,6 @@ const fontWeight = props.thinFont ? 400 : 900 const button = ref() -const attributes = computed(() => - color(props, ['interactive'])( - width(props, [isIconOnly.value ? 'minContent' : 'buttonWidth'])( - align(props, { alignSelf:'start', alignText:'center' })() -))) const click = async (...args: any[]) => { internalLoader.value = true @@ -60,17 +55,18 @@ onMounted(() => {