🎨 fix(logs): tune usage table typography
Set usage log tables to a balanced 13px default and keep log badges aligned with the active theme font.
This commit is contained in:
+2
-2
@@ -491,7 +491,7 @@ export function useCommonLogsColumns(isAdmin: boolean): ColumnDef<UsageLog>[] {
|
|||||||
copyText={sensitiveVisible ? tokenName : undefined}
|
copyText={sensitiveVisible ? tokenName : undefined}
|
||||||
size='sm'
|
size='sm'
|
||||||
showDot={false}
|
showDot={false}
|
||||||
className='border-border/60 bg-muted/30 text-foreground max-w-full overflow-hidden rounded-md border h-6 px-2 py-0.5 gap-1.5'
|
className='border-border/60 bg-muted/30 text-foreground h-6 max-w-full gap-1.5 overflow-hidden rounded-md border px-2 py-0.5 [font-family:var(--font-body)]'
|
||||||
/>
|
/>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
{sensitiveVisible && tokenName.length > 16 && (
|
{sensitiveVisible && tokenName.length > 16 && (
|
||||||
@@ -736,7 +736,7 @@ export function useCommonLogsColumns(isAdmin: boolean): ColumnDef<UsageLog>[] {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex flex-col gap-0.5'>
|
<div className='flex flex-col gap-0.5'>
|
||||||
<span className='border-border/80 bg-muted/60 inline-flex w-fit items-center rounded-md border px-1.5 py-0.5 font-mono text-xs font-semibold tabular-nums'>
|
<span className='border-border/80 bg-muted/60 inline-flex w-fit items-center rounded-md border px-1.5 py-0.5 font-semibold tabular-nums [font-family:var(--font-body)]'>
|
||||||
{quotaStr}
|
{quotaStr}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ function ModelBadgeContent(props: ModelBadgeProps) {
|
|||||||
showDot={!provider}
|
showDot={!provider}
|
||||||
autoColor={provider ? undefined : props.modelName}
|
autoColor={provider ? undefined : props.modelName}
|
||||||
className={cn(
|
className={cn(
|
||||||
'border-border/60 bg-muted/30 h-auto min-h-6 px-2 py-0.5 gap-1.5 rounded-md border whitespace-normal break-all',
|
'border-border/60 bg-muted/30 h-auto min-h-6 gap-1.5 rounded-md border px-2 py-0.5 whitespace-normal break-all [font-family:var(--font-body)]',
|
||||||
provider && 'text-foreground',
|
provider && 'text-foreground',
|
||||||
props.className
|
props.className
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -185,7 +185,10 @@ export function UsageLogsTable({ logCategory }: UsageLogsTableProps) {
|
|||||||
'No usage logs available. Logs will appear here once API calls are made.'
|
'No usage logs available. Logs will appear here once API calls are made.'
|
||||||
)}
|
)}
|
||||||
skeletonKeyPrefix='usage-log-skeleton'
|
skeletonKeyPrefix='usage-log-skeleton'
|
||||||
tableClassName='overflow-x-auto'
|
tableClassName={cn(
|
||||||
|
'overflow-x-auto',
|
||||||
|
'[&_[data-slot=table]]:text-[13px] [&_[data-slot=table]_td]:text-[13px] [&_[data-slot=table]_td_*]:text-[13px] [&_[data-slot=table]_th]:text-[13px] [&_[data-slot=table]_th_*]:text-[13px]'
|
||||||
|
)}
|
||||||
tableHeaderClassName='bg-muted/30 sticky top-0 z-10'
|
tableHeaderClassName='bg-muted/30 sticky top-0 z-10'
|
||||||
toolbar={
|
toolbar={
|
||||||
isCommon ? (
|
isCommon ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user