Parcourir la source

缩窄运营商操作列并调整对账日字重

sy il y a 1 jour
Parent
commit
3e59b25f78

+ 2 - 2
web-scaffold/src/pages/OrganizationPages.tsx

@@ -1062,10 +1062,10 @@ export function OperatorManagementPage() {
   const data = useOrganizationData(["regions", "operators"]);
   const data = useOrganizationData(["regions", "operators"]);
   useOrganizationDemand(["enterprises"]);
   useOrganizationDemand(["enterprises"]);
   const tableOverflow = useHorizontalOverflow();
   const tableOverflow = useHorizontalOverflow();
-  const minimumWidths = [112, 100, 100, 100, 100, 100, 100, 200];
+  const minimumWidths = [112, 107, 107, 100, 100, 100, 100, 186];
   const minimumTableWidth = minimumWidths.reduce((sum, width) => sum + width, 0);
   const minimumTableWidth = minimumWidths.reduce((sum, width) => sum + width, 0);
   const extraWidth = Math.max(0, tableOverflow.width - minimumTableWidth);
   const extraWidth = Math.max(0, tableOverflow.width - minimumTableWidth);
-  const extraShares = [.18, .11, .11, .11, .11, .11, .11, .16];
+  const extraShares = [.18, .17, .17, .11, .11, .11, .11, .04];
   const columnWidths = minimumWidths.map((width, index) => width + extraWidth * extraShares[index]);
   const columnWidths = minimumWidths.map((width, index) => width + extraWidth * extraShares[index]);
   const [query, setQuery] = useState("");
   const [query, setQuery] = useState("");
   const regionIds = useMemo(() => new Set(data.regions.map((item) => item.id)), [data.regions]);
   const regionIds = useMemo(() => new Set(data.regions.map((item) => item.id)), [data.regions]);

+ 2 - 2
web-scaffold/src/styles/organization.css

@@ -657,8 +657,8 @@ a.org-overview-card{text-decoration:none;color:inherit}
 .org-operator-name { display: block; color: var(--foreground); font-weight: 500; }
 .org-operator-name { display: block; color: var(--foreground); font-weight: 500; }
 .org-operator-ledger .org-operator-value + small,
 .org-operator-ledger .org-operator-value + small,
 .org-operator-ledger .org-operator-identity small { margin-top: 3px; font-size: var(--type-meta); }
 .org-operator-ledger .org-operator-identity small { margin-top: 3px; font-size: var(--type-meta); }
-.org-operator-value { display: block; overflow: hidden; color: var(--foreground); font-weight: 550; font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
-.org-operator-share-value { color: var(--primary); }
+.org-operator-value { display: block; overflow: hidden; color: var(--foreground); font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
+.org-operator-share-value { color: var(--primary); font-weight: 550; }
 .org-operator-muted { color: var(--muted-foreground); }
 .org-operator-muted { color: var(--muted-foreground); }
 .org-operator-ledger tbody tr:is(:hover,:focus-within) td{background:var(--surface-subtle)}
 .org-operator-ledger tbody tr:is(:hover,:focus-within) td{background:var(--surface-subtle)}
 .org-operator-ledger tbody tr.selected td{background:color-mix(in srgb,var(--primary-soft) 42%,var(--card))}
 .org-operator-ledger tbody tr.selected td{background:color-mix(in srgb,var(--primary-soft) 42%,var(--card))}