From b25071a92b653e8256dfbddbcf2bfa8c8e994fc9 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Fri, 29 May 2026 19:07:09 +0800 Subject: [PATCH] refactor(home-components): replace scss styles with tailwind utilities Remove standalone .scss style files for home page components, update their vue templates to use inline Tailwind utility classes, and remove the associated scoped style imports. --- .../components/AttachListComponent/index.vue | 12 +++--- .../AttachListComponent/styles/index.scss | 23 ----------- .../home/components/ChatCardAi/index.vue | 14 +++---- .../components/ChatCardAi/styles/index.scss | 39 ------------------- .../home/components/ChatCardMine/index.vue | 9 ++--- .../components/ChatCardMine/styles/index.scss | 20 ---------- .../home/components/ChatTopWelcome/index.vue | 10 ++--- .../ChatTopWelcome/styles/index.scss | 3 -- .../DiscoveryCardComponent/index.vue | 6 +-- .../DiscoveryCardComponent/styles/index.scss | 5 --- 10 files changed, 17 insertions(+), 124 deletions(-) delete mode 100644 src/pages/home/components/AttachListComponent/styles/index.scss delete mode 100644 src/pages/home/components/ChatCardAi/styles/index.scss delete mode 100644 src/pages/home/components/ChatCardMine/styles/index.scss delete mode 100644 src/pages/home/components/ChatTopWelcome/styles/index.scss delete mode 100644 src/pages/home/components/DiscoveryCardComponent/styles/index.scss diff --git a/src/pages/home/components/AttachListComponent/index.vue b/src/pages/home/components/AttachListComponent/index.vue index da327a1..8464e2d 100644 --- a/src/pages/home/components/AttachListComponent/index.vue +++ b/src/pages/home/components/AttachListComponent/index.vue @@ -1,7 +1,9 @@ @@ -36,7 +38,3 @@ onMounted(() => { }); }); - - diff --git a/src/pages/home/components/AttachListComponent/styles/index.scss b/src/pages/home/components/AttachListComponent/styles/index.scss deleted file mode 100644 index 00487d7..0000000 --- a/src/pages/home/components/AttachListComponent/styles/index.scss +++ /dev/null @@ -1,23 +0,0 @@ -.tag-list { - display: flex; - flex-wrap: wrap; - padding: 6px 12px; -} - -.tag-item { - box-sizing: border-box; - border: 1px solid #fff; - background-color: rgba(255, 255, 255, 0.5); - border-radius: 8px; - padding: 4px 10px; - margin-right: 8px; - margin-bottom: 8px; - display: inline-flex; - align-items: center; - justify-content: center; -} - -.tag-text { - color: #0ccd58; - font-size: 14px; -} diff --git a/src/pages/home/components/ChatCardAi/index.vue b/src/pages/home/components/ChatCardAi/index.vue index f5dc69b..bd612c1 100644 --- a/src/pages/home/components/ChatCardAi/index.vue +++ b/src/pages/home/components/ChatCardAi/index.vue @@ -1,10 +1,10 @@