From 831a760246470425a607cf8ec0c06267041cf61b Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 20 Jul 2026 12:08:12 +0800 Subject: [PATCH] style: adjust table row bg/height, container color, auto table layout --- src/config/theme/light.ts | 6 +++--- src/global.less | 16 +--------------- src/pages/resources/components/workers.tsx | 1 + 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/src/config/theme/light.ts b/src/config/theme/light.ts index 57e45b7b..2340afc6 100644 --- a/src/config/theme/light.ts +++ b/src/config/theme/light.ts @@ -26,8 +26,8 @@ export default { cellPaddingInline: 16, cellPaddingBlock: 6, cellFontSize: 14, - rowSelectedHoverBg: 'rgb(249 249 249)', - rowHoverBg: 'rgb(249 249 249)', + rowSelectedHoverBg: 'rgb(247 247 247)', + rowHoverBg: 'rgb(247 247 247)', rowSelectedBg: 'transparent', headerSortActiveBg: 'transparent', headerSortHoverBg: 'transparent', @@ -116,7 +116,7 @@ export default { borderRadiusLG: 6, borderRadius: 4, borderRadiusSM: 3, - colorBgContainer: '#fff', + colorBgContainer: '#fdfdfd', fontSize: 14, motion: true } diff --git a/src/global.less b/src/global.less index 8c8864da..a78af1e9 100644 --- a/src/global.less +++ b/src/global.less @@ -21,8 +21,6 @@ html { --color-fill-sider: #f4f5f4; --color-bg-1: #f4f5f4; --color-scroll-bg: #d9d9d9; - --color-fill-2: #fff; - --color-fill-3: #f3f6fa; --color-logs-bg: #1e1e1e; --color-logs-text: #d4d4d4; --layout-content-blockpadding: 24px; @@ -76,7 +74,6 @@ html { --ant-rate-star-color: #fadb14; --color-fill-spin-bg: rgba(255, 255, 255, 15%); --width-tooltip-max: 420px; - --color-bg-tooltip: '#fff'; --color-modal-content-bg: rgba(255, 255, 255, 90%); --color-modal-box-shadow: 0 4px 16px rgba(0, 0, 0, 10%); --color-spotlight-bg: rgba(255, 255, 255, 100%); @@ -101,7 +98,6 @@ html[data-theme='realDark'] { --color-editor-dark: #00101f; --color-editor-light: #fafafa; --color-fill-spin-bg: rgba(55, 55, 55, 50%); - --color-bg-tooltip: #424242; --color-editor-header-bg: #292929; --color-progress-text: rgba(255, 255, 255, 80%); --color-modal-content-bg: #1f1f1f; @@ -116,19 +112,9 @@ html[data-theme='realDark'] { .ant-result-image { opacity: 0.9; } - - .ant-pro-page-container-affix .ant-pro-page-container-warp { - background-color: #292929 !important; - transition: none !important; - } } html[data-theme='light'] { - .ant-pro-page-container-affix .ant-pro-page-container-warp { - background-color: #fff !important; - transition: none !important; - } - background-color: #f4f5f6; } @@ -211,7 +197,7 @@ body { tr > td { border-bottom: none; - height: 68px; + height: var(--seal-table-row-min-height); } } diff --git a/src/pages/resources/components/workers.tsx b/src/pages/resources/components/workers.tsx index b6c43217..fb6fed5c 100644 --- a/src/pages/resources/components/workers.tsx +++ b/src/pages/resources/components/workers.tsx @@ -300,6 +300,7 @@ const Workers: React.FC = ({ clusterId, source }) => { >