From cef601b212b226ddaa31b288302bf679531e552b Mon Sep 17 00:00:00 2001 From: Zephyruso <176294927+Zephyruso@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:04:09 +0800 Subject: [PATCH] fix: card style for mobile in two columns --- src/components/proxies/ProxyNodeCard.vue | 20 +++++++++++++------- src/components/rules/RuleCard.vue | 12 ++++++++---- src/store/settings.ts | 2 +- 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/components/proxies/ProxyNodeCard.vue b/src/components/proxies/ProxyNodeCard.vue index 16d1ca1f..a1e0490a 100644 --- a/src/components/proxies/ProxyNodeCard.vue +++ b/src/components/proxies/ProxyNodeCard.vue @@ -3,7 +3,7 @@ ref="cardRef" :class=" twMerge( - 'flex min-h-9 cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2 text-xs sm:gap-2', + 'relative flex min-h-9 cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2', active ? 'bg-primary text-primary-content' : 'sm:hover:bg-base-300', isTruncated && 'tooltip tooltip-bottom', ) @@ -18,15 +18,23 @@ />