feat(theme): add simple-large preset, xl scale and clean up channel badge dots

Implement the Simple Large-font theme preset and xl font scale options to enhance interface accessibility. Remove status indicator dots from channel badges in logs to keep the table layout visual and clean.
This commit is contained in:
CaIon
2026-05-26 18:35:51 +08:00
parent 65f8afe922
commit f8add4ca49
11 changed files with 153 additions and 9 deletions
@@ -183,6 +183,7 @@ export function createChannelColumn<T>(config: {
autoColor={String(channelId)}
copyText={String(channelId)}
size='sm'
showDot={false}
className='font-mono'
/>
)
@@ -332,6 +332,7 @@ export function useCommonLogsColumns(isAdmin: boolean): ColumnDef<UsageLog>[] {
autoColor={String(log.channel)}
copyText={String(log.channel)}
size='sm'
showDot={false}
className='font-mono'
/>
{affinity && (
@@ -554,7 +555,7 @@ export function useCommonLogsColumns(isAdmin: boolean): ColumnDef<UsageLog>[] {
? log.completion_tokens / useTime
: null
const timeVariant = getResponseTimeColor(useTime, log.completion_tokens)
const frtVariant = frt ? getFirstResponseTimeColor(frt / 1000) : null
const frtVariant = frt ? getFirstResponseTimeColor(frt / 1000) : 'neutral'
const timingBgMap: Record<string, string> = {
success: