Selaa lähdekoodia

fix(web): 对齐对账清单筛选按钮样式

sy 2 päivää sitten
vanhempi
commit
7405e053e3

+ 4 - 4
web-scaffold/src/pages/SettlementRecordPages.tsx

@@ -10,7 +10,7 @@
  */
 import { useEffect, useId, useState, type FormEvent } from "react";
 import { PageIntro } from "../components/PageIntro";
-import { ArrowLeft, ArrowRight, CalendarClock, ChevronDown, Download, FileSpreadsheet, RefreshCw, Search, TriangleAlert, X } from "lucide-react";
+import { ArrowLeft, ArrowRight, CalendarClock, ChevronDown, Download, FileSpreadsheet, ListFilter, RefreshCw, Search, TriangleAlert, X } from "lucide-react";
 import { Link, useLocation, useNavigate, useParams, useSearchParams } from "react-router";
 import { Button } from "../components/ui/button";
 import { SearchInput } from "../components/ui/search-input";
@@ -490,9 +490,9 @@ export function SettlementStatementListPage() {
             <option value="">全部触发方式</option>
             {(["manual", "auto"] as const).map((key) => <option key={key} value={key}>{TRIGGER_TYPE_TEXT[key]}</option>)}
           </FilterSelect>
-          <Button variant="outline" className="statement-zero-filter" aria-pressed={zero}
-            onClick={() => filters.set("zero", zero ? "" : "1", true)}>零明细批次</Button>
-          {hasFilter && <Button variant="ghost" onClick={() => { filters.reset(); setMonthFallback(false); }}>重置筛选</Button>}
+          <Button variant={zero ? "default" : "outline"} size="sm" className="h-[38px] shrink-0" aria-pressed={zero}
+            onClick={() => filters.set("zero", zero ? "" : "1", true)}><ListFilter size={15} aria-hidden="true" />零明细批次</Button>
+          {hasFilter && <Button variant="ghost" size="sm" onClick={() => { filters.reset(); setMonthFallback(false); }}>重置筛选</Button>}
         </div>
 
         {/* S404 触顶 ⇒ 不渲染三卡与列表(⚠️ 禁止静默截断)。 */}

+ 0 - 1
web-scaffold/src/styles/settlement-records.css

@@ -167,7 +167,6 @@
 .reconcile-index > .reconcile-ledger > .statement-filters{gap:8px;margin:0;border-bottom:1px solid var(--border-subtle)}
 .reconcile-index > .reconcile-ledger > .statement-ledger-scroll{margin:0;border:0;border-radius:0}
 .statement-filters .ops-search{flex:0 1 188px;min-width:min(152px,100%)}
-.statement-zero-filter[aria-pressed="true"]{border-color:var(--primary-border);background:var(--primary-soft);color:var(--primary-soft-foreground)}
 .statement-ledger-scroll{position:relative;overflow:auto;overscroll-behavior-x:contain}
 .statement-ledger-scroll:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
 .ops-table.statement-ledger{table-layout:fixed;border-collapse:separate;border-spacing:0}