fix(web): normalize model detail tabs layout (#4938)

This commit is contained in:
yyhhyyyyyy
2026-05-19 16:14:08 +08:00
committed by GitHub
parent ee9736bbc8
commit 04b4483d7d
5 changed files with 7 additions and 7 deletions
@@ -920,17 +920,17 @@ export function ModelDetailsContent(props: ModelDetailsContentProps) {
<ModelHeader model={props.model} />
<Tabs defaultValue='overview' className='gap-4'>
<TabsList className='bg-muted/60 h-auto w-full justify-start gap-1 overflow-x-auto rounded-lg p-1'>
<TabsList className='bg-muted/60 grid w-full grid-cols-3 gap-1 rounded-lg p-1 group-data-horizontal/tabs:h-auto'>
{TAB_VALUES.map((value) => {
const Icon = TAB_META[value].icon
return (
<TabsTrigger
key={value}
value={value}
className='h-8 gap-1.5 rounded-md px-3 text-xs sm:text-sm'
className='h-8 min-w-0 gap-1.5 rounded-md px-3 text-xs sm:text-sm'
>
<Icon className='size-3.5' />
<span>{t(TAB_META[value].labelKey)}</span>
<span className='truncate'>{t(TAB_META[value].labelKey)}</span>
</TabsTrigger>
)
})}