From 9df38c7e8376f83087aebcf0a0dc842729afe11f Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Thu, 6 Nov 2025 10:27:30 +0800 Subject: [PATCH] refactor: update AddButton styling to use CSS variable for border radius and remove unused settings hook --- src/renderer/src/pages/home/Tabs/components/AddButton.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/renderer/src/pages/home/Tabs/components/AddButton.tsx b/src/renderer/src/pages/home/Tabs/components/AddButton.tsx index 6968d35df9..c96468db15 100644 --- a/src/renderer/src/pages/home/Tabs/components/AddButton.tsx +++ b/src/renderer/src/pages/home/Tabs/components/AddButton.tsx @@ -1,4 +1,3 @@ -import { useSettings } from '@renderer/hooks/useSettings' import type { ButtonProps } from 'antd' import { Button } from 'antd' import { PlusIcon } from 'lucide-react' @@ -9,7 +8,7 @@ const StyledButton = styled(Button)` height: 36px; width: calc(var(--assistants-width) - 20px); justify-content: flex-start; - border-radius: 8px; + border-radius: var(--list-item-border-radius); padding: 0 12px; font-size: 13px; color: var(--color-text-2); @@ -20,12 +19,9 @@ const StyledButton = styled(Button)` ` const AddButton: FC = ({ ...props }) => { - const { topicPosition } = useSettings() - return ( }>