diff --git a/studio/src/renderer/src/studio/ViewList.tsx b/studio/src/renderer/src/studio/ViewList.tsx index a8faa235c..57dbe8fc4 100644 --- a/studio/src/renderer/src/studio/ViewList.tsx +++ b/studio/src/renderer/src/studio/ViewList.tsx @@ -22,6 +22,8 @@ const VIEW_ICONS: Record = { noise: 'views/noise' } const FALLBACK_ICON: IdeIconName = 'views/regions' +/** Inset, because the stripe scrolls and so clips anything drawn outside its buttons. */ +const STRIPE_BUTTON = 'flex size-8 shrink-0 items-center justify-center rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-inset' /** The icon a view has in the stripe, which its island's header repeats beside its name. */ export function viewIcon(viewId: string): IdeIconName { @@ -85,7 +87,7 @@ function ViewButton({ view, selected, onSelect }: { view: ViewInfo; selected: bo onClick={onSelect} aria-label={view.label} aria-pressed={selected} - className={cn('flex size-8 shrink-0 items-center justify-center rounded-lg', selected ? 'bg-primary [&_img]:brightness-0 [&_img]:invert' : 'hover:bg-selection')} + className={cn(STRIPE_BUTTON, selected ? 'bg-primary [&_img]:brightness-0 [&_img]:invert' : 'hover:bg-selection')} > @@ -107,7 +109,7 @@ function NamedViews({ groups, current, onSelect }: { groups: ViewGroup[]; curren return ( -