From 4d70fed5329530a6829cef0dea859b2981e165a7 Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Mon, 8 Sep 2025 17:45:03 +0100 Subject: [PATCH] Add props to CatdBottom and CardContainer --- src/components/card/CardBottom.vue | 14 ++++++++++++-- src/components/card/CardContainer.vue | 7 ++++--- src/components/input/SearchBox.vue | 16 +++++++++++++--- 3 files changed, 29 insertions(+), 8 deletions(-) diff --git a/src/components/card/CardBottom.vue b/src/components/card/CardBottom.vue index 7f35754e6c..687301baa3 100644 --- a/src/components/card/CardBottom.vue +++ b/src/components/card/CardBottom.vue @@ -1,7 +1,17 @@ - + diff --git a/src/components/card/CardContainer.vue b/src/components/card/CardContainer.vue index e3204ee516..bf5ca62b5f 100644 --- a/src/components/card/CardContainer.vue +++ b/src/components/card/CardContainer.vue @@ -15,17 +15,18 @@ const { } = defineProps<{ maxWidth?: number minWidth?: number - ratio?: 'square' | 'portrait' | 'tallPortrait' + ratio?: 'square' | 'portrait' | 'tallPortrait' | 'none' }>() const containerClasses = computed(() => { const baseClasses = - 'flex flex-col bg-white dark-theme:bg-zinc-800 rounded-lg shadow-sm border border-zinc-200 dark-theme:border-zinc-700 overflow-hidden' + 'flex flex-col hover:bg-white dark-theme:hover:bg-zinc-800 rounded-lg hover:shadow-sm hover:border hover:border-zinc-200 dark-theme:hover:border-zinc-700 overflow-hidden hover:p-2' const ratioClasses = { square: 'aspect-256/308', portrait: 'aspect-256/325', - tallPortrait: 'aspect-256/353' + tallPortrait: 'aspect-256/353', + none: '' } return `${baseClasses} ${ratioClasses[ratio]}` diff --git a/src/components/input/SearchBox.vue b/src/components/input/SearchBox.vue index 622fc6ff85..f0784a6b67 100644 --- a/src/components/input/SearchBox.vue +++ b/src/components/input/SearchBox.vue @@ -1,7 +1,8 @@