@@ -258,38 +258,36 @@ export function TabButton({
258258 ref = { ref }
259259 { ...props }
260260 >
261- < >
262- < div className = { cn ( "flex items-center gap-1" , title && "flex-1" ) } >
263- < span
264- className = { cn (
265- "transition duration-200" ,
266- title
267- ? cn (
268- headerVariants . header2 . text ,
269- isActive ? "text-text-bright" : "text-text-dimmed group-hover:text-text-bright"
270- )
271- : "text-sm text-text-bright"
272- ) }
273- >
274- { props . children }
275- </ span >
276- { shortcut && < ShortcutKey className = { cn ( "" ) } shortcut = { shortcut } variant = { "small" } /> }
277- </ div >
278- { isActive ? (
279- < motion . div
280- layoutId = { layoutId }
281- transition = { { type : "spring" , stiffness : 500 , damping : 30 } }
282- className = { cn ( "h-0.5 w-full bg-indigo-500" , ! title && "mt-1" ) }
283- />
284- ) : (
285- < div
286- className = { cn (
287- "h-0.5 w-full bg-surface-control-active opacity-0 transition duration-200 group-hover:opacity-100" ,
288- ! title && "mt-1"
289- ) }
290- />
291- ) }
292- </ >
261+ < div className = { cn ( "flex items-center gap-1" , title && "flex-1" ) } >
262+ < span
263+ className = { cn (
264+ "transition duration-200" ,
265+ title
266+ ? cn (
267+ headerVariants . header2 . text ,
268+ isActive ? "text-text-bright" : "text-text-dimmed group-hover:text-text-bright"
269+ )
270+ : "text-sm text-text-bright"
271+ ) }
272+ >
273+ { props . children }
274+ </ span >
275+ { shortcut && < ShortcutKey className = { cn ( "" ) } shortcut = { shortcut } variant = { "small" } /> }
276+ </ div >
277+ { isActive ? (
278+ < motion . div
279+ layoutId = { layoutId }
280+ transition = { { type : "spring" , stiffness : 500 , damping : 30 } }
281+ className = { cn ( "h-0.5 w-full bg-indigo-500" , ! title && "mt-1" ) }
282+ />
283+ ) : (
284+ < div
285+ className = { cn (
286+ "h-0.5 w-full bg-surface-control-active opacity-0 transition duration-200 group-hover:opacity-100" ,
287+ ! title && "mt-1"
288+ ) }
289+ />
290+ ) }
293291 </ button >
294292 ) ;
295293}
0 commit comments