@@ -3023,7 +3023,7 @@ export function ExampleWorkbench({
30233023 if ( element ) notebookPaneRefs . current . set ( pane . id , element )
30243024 else notebookPaneRefs . current . delete ( pane . id )
30253025 } }
3026- className = "grid min-h-0 min-w-0 grid-rows-[2.5rem_minmax(0,1fr)] overflow-hidden bg-background-default"
3026+ className = "grid min-h-0 min-w-0 grid-rows-[2.5rem_minmax(0,1fr)] overflow-hidden bg-background-default @min-[900px]:grid-rows-[2.25rem_minmax(0,1fr)] "
30273027 onPointerDownCapture = { ( ) => {
30283028 setNotebookTabs ( ( current ) =>
30293029 activateNotebookWorkbenchPane ( current , pane . id ) ,
@@ -3067,8 +3067,8 @@ export function ExampleWorkbench({
30673067 role = "presentation"
30683068 className = { `flex h-10 shrink-0 items-stretch overflow-hidden rounded-lg transition-colors duration-100 motion-reduce:transition-none @min-[900px]:h-8 ${
30693069 active
3070- ? 'bg-background-subtle text-text-primary'
3071- : 'text-text-muted hover:bg-background-subtle hover:text-text-primary'
3070+ ? 'bg-action-secondary text-text-primary'
3071+ : 'text-text-secondary hover:bg-surface-state-hover hover:text-text-primary'
30723072 } ${ dragging ? 'opacity-50' : '' } `}
30733073 >
30743074 < button
@@ -3088,7 +3088,7 @@ export function ExampleWorkbench({
30883088 aria-label = { label }
30893089 title = { label }
30903090 tabIndex = { active ? 0 : - 1 }
3091- className = "flex min-w-0 touch-pan-x items-center gap-2 px-2.5 text-sm focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus"
3091+ className = "flex min-w-0 touch-pan-x items-center gap-1.5 px-2 text-xs focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus"
30923092 onClick = { ( ) => {
30933093 if ( notebookTabDidDragRef . current ) {
30943094 notebookTabDidDragRef . current = false
@@ -3106,12 +3106,12 @@ export function ExampleWorkbench({
31063106 onLostPointerCapture = { cancelNotebookTabDrag }
31073107 >
31083108 { tab . kind === 'preview' ? (
3109- < BrowserIcon className = "size-4 " aria-hidden = "true" />
3109+ < BrowserIcon className = "size-3.5 " aria-hidden = "true" />
31103110 ) : tab . kind === 'editor' ? (
3111- < CodeIcon className = "size-4 " aria-hidden = "true" />
3111+ < CodeIcon className = "size-3.5 " aria-hidden = "true" />
31123112 ) : (
31133113 < TerminalWindowIcon
3114- className = "size-4 "
3114+ className = "size-3.5 "
31153115 aria-hidden = "true"
31163116 />
31173117 ) }
@@ -3197,7 +3197,7 @@ export function ExampleWorkbench({
31973197 color = "gray"
31983198 size = "icon-sm"
31993199 rounded = "lg"
3200- className = "size-10 shrink-0 bg-background-subtle text-text-secondary transition-colors duration-100 hover:bg-surface-state -hover active:scale-95 motion-reduce:transition-none @min-[900px]:size-8"
3200+ className = "size-10 shrink-0 bg-action-secondary text-text-primary transition-colors duration-100 hover:bg-action-secondary -hover active:scale-95 max-[899px]:bg-action-secondary max-[899px]:text-text-primary motion-reduce:transition-none @min-[900px]:size-8"
32013201 aria-label = { newTabLabel }
32023202 >
32033203 < PlusIcon className = "size-4" aria-hidden = "true" />
@@ -3210,14 +3210,14 @@ export function ExampleWorkbench({
32103210 className = "w-64 max-w-[calc(100vw-1rem)] origin-[var(--radix-dropdown-menu-content-transform-origin)] rounded-xl border-border-subtle p-1 shadow-xl duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 motion-reduce:animate-none"
32113211 >
32123212 < DropdownItem
3213- className = "min-h-10 gap-2.5 rounded-lg px-2.5 py-1 text-sm text-text-primary transition-colors duration-100 motion-reduce:transition-none"
3213+ className = "min-h-10 gap-2 rounded-lg px-2 py-1 text-[13px] text-text-primary transition-colors duration-100 hover:bg-surface-state-hover focus:bg-surface-state-hover motion-reduce:transition-none min-[900px]:min-h-9 "
32143214 onSelect = { ( ) => addNotebookTab ( { kind : 'preview' } , pane . id ) }
32153215 >
32163216 < BrowserIcon className = "size-4" aria-hidden = "true" />
32173217 Preview
32183218 </ DropdownItem >
32193219 < DropdownItem
3220- className = "min-h-10 gap-2.5 rounded-lg px-2.5 py-1 text-sm text-text-primary transition-colors duration-100 motion-reduce:transition-none"
3220+ className = "min-h-10 gap-2 rounded-lg px-2 py-1 text-[13px] text-text-primary transition-colors duration-100 hover:bg-surface-state-hover focus:bg-surface-state-hover motion-reduce:transition-none min-[900px]:min-h-9 "
32213221 onSelect = { ( ) =>
32223222 addNotebookTab (
32233223 {
@@ -3233,7 +3233,7 @@ export function ExampleWorkbench({
32333233 Editor
32343234 </ DropdownItem >
32353235 < DropdownItem
3236- className = "min-h-10 gap-2.5 rounded-lg px-2.5 py-1 text-sm text-text-primary transition-colors duration-100 motion-reduce:transition-none"
3236+ className = "min-h-10 gap-2 rounded-lg px-2 py-1 text-[13px] text-text-primary transition-colors duration-100 hover:bg-surface-state-hover focus:bg-surface-state-hover motion-reduce:transition-none min-[900px]:min-h-9 "
32373237 onSelect = { ( ) => addNotebookTab ( { kind : 'console' } , pane . id ) }
32383238 >
32393239 < TerminalWindowIcon className = "size-4" aria-hidden = "true" />
@@ -3257,7 +3257,7 @@ export function ExampleWorkbench({
32573257 color = "gray"
32583258 size = "icon-sm"
32593259 rounded = "lg"
3260- className = "size-10 shrink-0 transition-colors duration-100 active:scale-95 motion-reduce:transition-none @min-[900px]:size-8"
3260+ className = "size-10 shrink-0 bg-action-secondary text-text-primary transition-colors duration-100 hover:bg-action-secondary-hover active:scale-95 max-[899px]:bg-action-secondary max-[899px]:text-text-primary motion-reduce:transition-none @min-[900px]:size-8"
32613261 aria-label = "Copy share link"
32623262 disabled = { shareState === 'sharing' }
32633263 onClick = { ( ) => void share ( ) }
0 commit comments