File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,16 @@ interface TopBarProps {
1414 onToggleSidebar : ( ) => void ;
1515}
1616
17+ const DEFAULT_TOOLTIP_PLACEMENT = 'bottom-start' ;
18+
1719function ToggleSidebar ( { onToggleSidebar } : TopBarProps ) {
1820 return (
1921 < div className = "app-no-drag-region" >
20- < Tooltip text = { __ ( 'Toggle sidebar' ) } className = "h-6" >
22+ < Tooltip
23+ text = { __ ( 'Toggle sidebar' ) }
24+ className = "h-6"
25+ placement = { DEFAULT_TOOLTIP_PLACEMENT }
26+ >
2127 < Button onClick = { onToggleSidebar } variant = "icon" aria-label = { __ ( 'Toggle sidebar' ) } >
2228 < Icon className = "text-white" icon = { drawerLeft } size = { 24 } />
2329 </ Button >
@@ -44,6 +50,7 @@ function OfflineIndicator() {
4450 </ span >
4551 }
4652 className = "h-6"
53+ placement = { DEFAULT_TOOLTIP_PLACEMENT }
4754 >
4855 < Button
4956 aria-label = { __ ( 'Offline indicator' ) }
You can’t perform that action at this time.
0 commit comments