Skip to content

Commit 8f188ac

Browse files
committed
style(web): right-align percent and quota columns in key list table
1 parent 334b0af commit 8f188ac

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

web/src/components/KeyList.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -475,19 +475,19 @@ export default function KeyList() {
475475
<colgroup>
476476
<col style={{ width: '4%' }} />
477477
<col style={{ width: '5%' }} />
478-
<col style={{ width: '18%' }} />
479-
<col style={{ width: '12%' }} />
480-
<col style={{ width: '22%' }} />
481478
<col style={{ width: '22%' }} />
479+
<col style={{ width: '8%' }} />
480+
<col style={{ width: '18%' }} />
481+
<col style={{ width: '18%' }} />
482482
<col style={{ width: '10%' }} />
483483
</colgroup>
484484
<TableHeader>
485485
<TableRow className="bg-muted/30 hover:bg-muted/30">
486486
<TableHead></TableHead>
487487
<TableHead className="text-xs tracking-wider">NO</TableHead>
488488
<TableHead className="text-xs tracking-wider">KEY</TableHead>
489-
<SortableHeader field="percent" label="%" align="center" sortConfig={sortConfig} onSort={handleSort} />
490-
<SortableHeader field="quota" label="QUOTA" align="center" sortConfig={sortConfig} onSort={handleSort} />
489+
<SortableHeader field="percent" label="%" align="right" sortConfig={sortConfig} onSort={handleSort} />
490+
<SortableHeader field="quota" label="QUOTA" align="right" sortConfig={sortConfig} onSort={handleSort} />
491491
<SortableHeader field="expiry" label="EXPIRY" align="center" sortConfig={sortConfig} onSort={handleSort} />
492492
<TableHead className="text-right text-xs tracking-wider">ACTIONS</TableHead>
493493
</TableRow>
@@ -537,10 +537,10 @@ export default function KeyList() {
537537
isCurrent={info.isCurrent}
538538
/>
539539
</TableCell>
540-
<TableCell className="text-center font-mono text-sm text-muted-foreground py-2">
540+
<TableCell className="text-right font-mono text-sm text-muted-foreground py-2">
541541
{info.usage?.total ? `${percent}%` : '-'}
542542
</TableCell>
543-
<TableCell className="py-2 text-sm text-muted-foreground font-mono text-center whitespace-nowrap">
543+
<TableCell className="py-2 text-sm text-muted-foreground font-mono text-right whitespace-nowrap">
544544
{info.usage?.total ? (
545545
<span>
546546
{formatNumber(info.usage.used || 0)}

0 commit comments

Comments
 (0)