From d0bca215c1b355d411ec356f39bd28ea7481e8be Mon Sep 17 00:00:00 2001 From: Timothy Yin Date: Tue, 10 Feb 2026 10:29:50 +0800 Subject: [PATCH 1/2] chore(deps): bump tailwindcss to v4 --- app/assets/css/tailwind.css | 24 ++++++++++++++++--- app/components/BubbleTitle.vue | 4 ++-- app/components/DigitalHumanTrainCreator.vue | 8 +++---- app/components/GradientDivider.vue | 6 ++--- app/components/ImagePlaceholder.vue | 2 +- app/components/ModalAuthentication.vue | 2 +- app/components/aigc/RatioSelector.vue | 2 +- .../aigc/ReferenceFigureSelector.vue | 2 +- app/components/aigc/chat/Message.vue | 2 +- app/components/aigc/chat/NewSessionScreen.vue | 6 ++--- app/components/aigc/drawing/OptionBlock.vue | 2 +- app/components/aigc/drawing/ResultBlock.vue | 6 ++--- .../aigc/generation/CGTaskCard.client.vue | 8 +++---- app/components/aigc/generation/GBTaskCard.vue | 8 +++---- app/components/aigc/generation/SRTEditor.vue | 14 +++++------ .../aigc/generation/TitlesTemplate.vue | 8 +++---- app/components/uni/Button/index.vue | 2 +- app/components/uni/Input/index.vue | 4 ++-- app/components/uni/Message/Provider.vue | 2 +- app/components/uni/Message/index.vue | 8 +++---- app/components/uni/Select/index.vue | 6 ++--- app/components/uni/TextArea/index.vue | 4 ++-- app/components/uni/Toggle/index.vue | 8 +++---- app/layouts/default.vue | 2 +- app/pages/aigc/chat/index.vue | 6 ++--- app/pages/aigc/draw/index.vue | 2 +- app/pages/aigc/navigation.vue | 4 ++-- .../generation/admin/digital-human-train.vue | 2 +- app/pages/generation/admin/materials.vue | 14 +++++------ app/pages/generation/avatar-models.vue | 8 +++---- app/pages/generation/ppt-templates.vue | 2 +- app/pages/user/authenticate.vue | 2 +- app/pages/user/register.vue | 2 +- package.json | 4 ++-- pnpm-lock.yaml | 19 +++++++++++---- 35 files changed, 117 insertions(+), 88 deletions(-) diff --git a/app/assets/css/tailwind.css b/app/assets/css/tailwind.css index 0f90bc1..caa50b4 100644 --- a/app/assets/css/tailwind.css +++ b/app/assets/css/tailwind.css @@ -1,6 +1,24 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; +@import 'tailwindcss'; + +@config '../../../tailwind.config.ts'; + +/* + The default border color has changed to `currentcolor` in Tailwind CSS v4, + so we've added these compatibility styles to make sure everything still + looks the same as it did with Tailwind CSS v3. + + If we ever want to remove these styles, we need to add an explicit border + color utility to any element that depends on these defaults. +*/ +@layer base { + *, + ::after, + ::before, + ::backdrop, + ::file-selector-button { + border-color: var(--color-gray-200, currentcolor); + } +} @layer base { html { diff --git a/app/components/BubbleTitle.vue b/app/components/BubbleTitle.vue index 648c983..e855c34 100644 --- a/app/components/BubbleTitle.vue +++ b/app/components/BubbleTitle.vue @@ -30,7 +30,7 @@ const props = defineProps({

{{ title }}

@@ -43,7 +43,7 @@ const props = defineProps({
diff --git a/app/components/DigitalHumanTrainCreator.vue b/app/components/DigitalHumanTrainCreator.vue index f9a00b0..36a64a2 100644 --- a/app/components/DigitalHumanTrainCreator.vue +++ b/app/components/DigitalHumanTrainCreator.vue @@ -477,7 +477,7 @@ const showAuthModal = ref(false)
确保光线充足,避免背光 @@ -486,7 +486,7 @@ const showAuthModal = ref(false)
选择安静环境,减少噪音干扰 @@ -495,7 +495,7 @@ const showAuthModal = ref(false)
人脸占画面比例控制在 1/4 以内 @@ -504,7 +504,7 @@ const showAuthModal = ref(false)
保持自然表情,使用恰当手势 diff --git a/app/components/GradientDivider.vue b/app/components/GradientDivider.vue index 4604951..b4b2255 100644 --- a/app/components/GradientDivider.vue +++ b/app/components/GradientDivider.vue @@ -18,12 +18,12 @@ const props = defineProps({ diff --git a/app/components/ImagePlaceholder.vue b/app/components/ImagePlaceholder.vue index 9936517..72a429e 100644 --- a/app/components/ImagePlaceholder.vue +++ b/app/components/ImagePlaceholder.vue @@ -36,6 +36,6 @@ const size = computed(() => { diff --git a/app/components/ModalAuthentication.vue b/app/components/ModalAuthentication.vue index 549aa31..ae3352e 100644 --- a/app/components/ModalAuthentication.vue +++ b/app/components/ModalAuthentication.vue @@ -585,7 +585,7 @@ const onForgetPasswordSubmit = ( .pin-input { @apply w-full md:w-16 aspect-square rounded text-center shadow caret-transparent; - @apply outline-0 ring-indigo-500 focus:ring font-bold; + @apply outline-0 ring-indigo-500 focus:ring-3 font-bold; } .pin-label { diff --git a/app/components/aigc/RatioSelector.vue b/app/components/aigc/RatioSelector.vue index 8370ed2..0fd2b5b 100644 --- a/app/components/aigc/RatioSelector.vue +++ b/app/components/aigc/RatioSelector.vue @@ -68,7 +68,7 @@ const getShapeSize = (r: { w: number; h: number }, size: number) => { :class="[ratio.value === selected && 'bg-sky-200/50 dark:bg-sky-700/50']" >
{