From 31d4c1d2fe230e9684792279b540f5cf3883d83b Mon Sep 17 00:00:00 2001 From: shaw Date: Sun, 28 Dec 2025 22:34:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E5=A4=8D=20Select=20?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E8=8F=9C=E5=8D=95=E9=80=89=E9=A1=B9=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E8=A2=AB=E6=88=AA=E6=96=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改下拉框宽度策略为 min-w-full w-max max-w-[300px],允许自动扩展 - 添加 left-0 确保下拉框左对齐 - 为选项标签添加 flex-1 min-w-0 text-left 确保正确布局 --- frontend/src/components/common/Select.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/common/Select.vue b/frontend/src/components/common/Select.vue index 71a41431..725aa1f3 100644 --- a/frontend/src/components/common/Select.vue +++ b/frontend/src/components/common/Select.vue @@ -297,7 +297,7 @@ onUnmounted(() => { } .select-dropdown { - @apply absolute z-[100] mt-2 w-full; + @apply absolute left-0 z-[100] mt-2 min-w-full w-max max-w-[300px]; @apply bg-white dark:bg-dark-800; @apply rounded-xl; @apply border border-gray-200 dark:border-dark-700; @@ -339,7 +339,7 @@ onUnmounted(() => { } .select-option-label { - @apply truncate; + @apply flex-1 min-w-0 truncate text-left; } .select-empty {