style: Hide labels of tabs on smaller screens

This commit is contained in:
Dries Augustyns
2025-12-08 21:48:09 +01:00
parent a372e55b78
commit 77089fcdd6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -368,9 +368,9 @@ export default function Settings() {
{buildTabs({billingEnabled, smtpEnabled}).map(tab => { {buildTabs({billingEnabled, smtpEnabled}).map(tab => {
const Icon = tab.icon; const Icon = tab.icon;
return ( return (
<TabsTrigger key={tab.id} value={tab.id} className="flex items-center gap-2"> <TabsTrigger key={tab.id} value={tab.id} className="flex items-center gap-2" title={tab.label}>
<Icon className="h-4 w-4" /> <Icon className="h-4 w-4" />
{tab.label} <span className="hidden md:inline">{tab.label}</span>
</TabsTrigger> </TabsTrigger>
); );
})} })}
+1 -1
View File
@@ -14,7 +14,7 @@ const TabsList = React.forwardRef<
<TabsPrimitive.List <TabsPrimitive.List
ref={ref} ref={ref}
className={cn( className={cn(
'inline-flex h-10 items-center justify-center rounded-md bg-neutral-100 p-1 text-neutral-500', 'inline-flex h-10 items-center justify-start rounded-md bg-neutral-100 p-1 text-neutral-500',
className, className,
)} )}
{...props} {...props}