Skip to content

Commit 871ca09

Browse files
committed
fix: StatsDetail页面强制使用白色背景,避免暗色模式影响
1 parent 01a2b0a commit 871ca09

File tree

1 file changed

+81
-7
lines changed

1 file changed

+81
-7
lines changed

web/src/pages/StatsDetail.vue

Lines changed: 81 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="min-h-screen stats-detail pt-24 md:pt-28">
2+
<div class="min-h-screen stats-detail pt-24 md:pt-28" style="background-color: #F8FAFC;">
33
<div class="max-w-5xl mx-auto p-6 space-y-6">
44
<div class="flex items-center justify-between">
55
<div class="flex items-center gap-3">
@@ -139,10 +139,84 @@ onMounted(()=>{ refresh() })
139139
</script>
140140

141141
<style scoped>
142-
/* reuse styles from StatsPage where possible; keep simple */
143-
.card { background: white; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; }
144-
.card-header { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid #f1f5f9; }
145-
.card-body { padding: 16px; }
146-
.form-input { padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px }
147-
.btn { padding: 8px 12px; border-radius: 6px }
142+
/* 强制使用白色背景,避免暗色模式影响 */
143+
.stats-detail {
144+
background: #F8FAFC !important;
145+
color: #1E293B;
146+
}
147+
148+
.card {
149+
background: white;
150+
border-radius: 8px;
151+
border: 1px solid #e2e8f0;
152+
overflow: hidden;
153+
}
154+
155+
.card-header {
156+
padding: 12px 16px;
157+
font-weight: 600;
158+
border-bottom: 1px solid #f1f5f9;
159+
background: white;
160+
color: #1E293B;
161+
}
162+
163+
.card-body {
164+
padding: 16px;
165+
background: white;
166+
}
167+
168+
.form-input {
169+
padding: 8px 10px;
170+
border: 1px solid #e2e8f0;
171+
border-radius: 6px;
172+
background: white;
173+
color: #1E293B;
174+
}
175+
176+
.btn {
177+
padding: 8px 12px;
178+
border-radius: 6px;
179+
background: white;
180+
color: #1E293B;
181+
border: 1px solid #e2e8f0;
182+
}
183+
184+
.btn:hover {
185+
background: #F1F5F9;
186+
}
187+
188+
/* 表格样式 */
189+
.events-table-container {
190+
background: white;
191+
}
192+
193+
.events-table {
194+
width: 100%;
195+
background: white;
196+
}
197+
198+
.events-table th {
199+
background: #F8FAFC;
200+
color: #64748B;
201+
padding: 12px;
202+
text-align: left;
203+
font-weight: 600;
204+
border-bottom: 1px solid #e2e8f0;
205+
}
206+
207+
.events-table td {
208+
padding: 12px;
209+
color: #1E293B;
210+
border-bottom: 1px solid #f1f5f9;
211+
}
212+
213+
.events-table tr:hover td {
214+
background: #F8FAFC;
215+
}
216+
217+
.empty-state {
218+
padding: 40px;
219+
text-align: center;
220+
color: #64748B;
221+
}
148222
</style>

0 commit comments

Comments
 (0)