fix(douyu-collab): 协作单详情抽屉适配暗色模式

- 去掉写死的 #f5f7fa / #fff / #f0f0f0
- 使用 theme token 的 colorBgLayout / colorBgContainer / colorBorderSecondary
This commit is contained in:
yml
2026-11-24 20:02:25 +08:00
parent 7a5d3ae9c8
commit cea64cafec
+9 -7
View File
@@ -27,6 +27,7 @@ import {
Timeline, Timeline,
Tooltip, Tooltip,
Typography, Typography,
theme,
type TableProps, type TableProps,
} from 'antd'; } from 'antd';
import { import {
@@ -109,6 +110,7 @@ import {
const { Text } = Typography; const { Text } = Typography;
export default function DouyuCollabPage() { export default function DouyuCollabPage() {
const { token } = theme.useToken();
const navigate = useNavigate(); const navigate = useNavigate();
const [searchParams, setSearchParams] = useSearchParams(); const [searchParams, setSearchParams] = useSearchParams();
const { modal } = App.useApp(); const { modal } = App.useApp();
@@ -2694,7 +2696,7 @@ export default function DouyuCollabPage() {
open={detailOpen} open={detailOpen}
onClose={closeDetail} onClose={closeDetail}
width="min(1180px, 96vw)" width="min(1180px, 96vw)"
styles={{ body: { padding: 24, background: '#f5f7fa' } }} styles={{ body: { padding: 24, background: token.colorBgLayout } }}
extra={ extra={
detail && canEdit ? ( detail && canEdit ? (
<Space size={8} wrap> <Space size={8} wrap>
@@ -2879,8 +2881,8 @@ export default function DouyuCollabPage() {
<div <div
style={{ style={{
background: '#fff', background: token.colorBgContainer,
border: '1px solid #f0f0f0', border: `1px solid ${token.colorBorderSecondary}`,
borderRadius: 8, borderRadius: 8,
padding: 16, padding: 16,
}} }}
@@ -2915,8 +2917,8 @@ export default function DouyuCollabPage() {
<Col xs={24} xl={12}> <Col xs={24} xl={12}>
<div <div
style={{ style={{
background: '#fff', background: token.colorBgContainer,
border: '1px solid #f0f0f0', border: `1px solid ${token.colorBorderSecondary}`,
borderRadius: 8, borderRadius: 8,
padding: 16, padding: 16,
minHeight: 260, minHeight: 260,
@@ -2963,8 +2965,8 @@ export default function DouyuCollabPage() {
<Col xs={24} xl={12}> <Col xs={24} xl={12}>
<div <div
style={{ style={{
background: '#fff', background: token.colorBgContainer,
border: '1px solid #f0f0f0', border: `1px solid ${token.colorBorderSecondary}`,
borderRadius: 8, borderRadius: 8,
padding: 16, padding: 16,
minHeight: 260, minHeight: 260,