From a106f4e3cd1cb9411d5ad98a2da9d0a486076c57 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Tue, 21 Apr 2026 16:41:08 +0800 Subject: [PATCH] fix(web): pageTabs style reset --- web/src/components/PageTabs/index.module.css | 13 ------------- web/src/components/PageTabs/index.tsx | 9 ++++----- web/src/styles/index.css | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 web/src/components/PageTabs/index.module.css diff --git a/web/src/components/PageTabs/index.module.css b/web/src/components/PageTabs/index.module.css deleted file mode 100644 index c33dcd61..00000000 --- a/web/src/components/PageTabs/index.module.css +++ /dev/null @@ -1,13 +0,0 @@ -.page-tabs:global(.ant-segmented) { - padding: 4px; - margin-left: 4px; -} -.page-tabs:global(.ant-segmented .ant-segmented-item-label) { - line-height: 24px; - min-height: 24px; - padding: 0 12px; -} - -.page-tabs:global(.ant-segmented .ant-segmented-item-selected) { - box-shadow: 0px 2px 4px 0px rgba(33, 35, 50, 0.16); -} \ No newline at end of file diff --git a/web/src/components/PageTabs/index.tsx b/web/src/components/PageTabs/index.tsx index bc136690..04dd2a6f 100644 --- a/web/src/components/PageTabs/index.tsx +++ b/web/src/components/PageTabs/index.tsx @@ -1,8 +1,8 @@ /* * @Author: ZhaoYing * @Date: 2026-02-02 15:18:50 - * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-02 15:18:50 + * @Last Modified by: ZhaoYing + * @Last Modified time: 2026-04-21 16:36:54 */ /** * PageTabs Component @@ -16,8 +16,6 @@ import { type FC } from 'react'; import { Segmented, type SegmentedProps } from 'antd'; -import styles from './index.module.css'; - /** * Page tabs component wrapper for Ant Design Segmented component. * Applies custom styling via CSS modules. @@ -27,11 +25,12 @@ const PageTabs: FC = ({ options, onChange }) => { + console.log('value', value) return ; }; diff --git a/web/src/styles/index.css b/web/src/styles/index.css index 84b5ec01..13904435 100644 --- a/web/src/styles/index.css +++ b/web/src/styles/index.css @@ -443,4 +443,18 @@ body { } .ΝΌ1.cm-focused { outline: none; +} +.pageTabs.ant-segmented { + padding: 4px; + margin-left: 4px; +} + +.pageTabs.ant-segmented .ant-segmented-item-label { + line-height: 24px; + min-height: 24px; + padding: 0 12px; +} + +.pageTabs.ant-segmented .ant-segmented-item-selected { + box-shadow: 0px 2px 4px 0px rgba(33, 35, 50, 0.16); } \ No newline at end of file