From 750a2783bd37125656a207a4185670c54a29f2e8 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Sun, 14 Jul 2024 13:04:01 +0800 Subject: [PATCH] feat: change assistant list item style --- src/renderer/src/assets/styles/index.scss | 4 ++-- src/renderer/src/pages/apps/AppsPage.tsx | 1 + src/renderer/src/pages/home/components/Assistants.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/assets/styles/index.scss b/src/renderer/src/assets/styles/index.scss index 9bb6a213..cc42e409 100644 --- a/src/renderer/src/assets/styles/index.scss +++ b/src/renderer/src/assets/styles/index.scss @@ -34,8 +34,8 @@ --navbar-height: 42px; --sidebar-width: 68px; - --assistants-width: 250px; - --topic-list-width: var(--assistants-width); + --assistants-width: 235px; + --topic-list-width: 250px; --settings-width: var(--assistants-width); --status-bar-height: 40px; --input-bar-height: 120px; diff --git a/src/renderer/src/pages/apps/AppsPage.tsx b/src/renderer/src/pages/apps/AppsPage.tsx index 0a001d0e..ce408157 100644 --- a/src/renderer/src/pages/apps/AppsPage.tsx +++ b/src/renderer/src/pages/apps/AppsPage.tsx @@ -56,6 +56,7 @@ const AppsPage: FC = () => { type="primary" shape="circle" size="small" + ghost icon={} /> )} diff --git a/src/renderer/src/pages/home/components/Assistants.tsx b/src/renderer/src/pages/home/components/Assistants.tsx index 62417801..af0dd6d9 100644 --- a/src/renderer/src/pages/home/components/Assistants.tsx +++ b/src/renderer/src/pages/home/components/Assistants.tsx @@ -121,7 +121,7 @@ const Container = styled.div` const AssistantItem = styled.div` display: flex; flex-direction: column; - padding: 8px 10px; + padding: 7px 10px; position: relative; border-radius: 5px; margin-bottom: 5px;