@@ -27,7 +27,18 @@ export function SearchScopeToggle(props: {
2727 return (
2828 < >
2929 { withSections ? (
30- < SegmentedControl className = "animate-scale-in @max-md:flex-col" >
30+ < SegmentedControl className = "animate-scale-in" >
31+ < SegmentedControlItem
32+ active = { state . scope === 'all' && state . depth === 'single' }
33+ label = {
34+ withSiteVariants
35+ ? tString ( language , 'search_scope_all_depth_single' )
36+ : tString ( language , 'search_scope_all_depth_full' )
37+ }
38+ className = { withSiteVariants ? '@max-md:basis-full' : '' }
39+ icon = { withSiteVariants ? 'bullseye-arrow' : 'infinity' }
40+ onClick = { ( ) => setSearchState ( { ...state , scope : 'all' , depth : 'single' } ) }
41+ />
3142 < SegmentedControlItem
3243 active = { state . scope === 'current' }
3344 icon = { section ?. icon ?? 'crosshairs' }
@@ -40,16 +51,6 @@ export function SearchScopeToggle(props: {
4051 setSearchState ( { ...state , scope : 'current' , depth : 'single' } )
4152 }
4253 />
43- < SegmentedControlItem
44- active = { state . scope === 'all' && state . depth === 'single' }
45- label = {
46- withSiteVariants
47- ? tString ( language , 'search_scope_all_depth_single' )
48- : tString ( language , 'search_scope_all_depth_full' )
49- }
50- icon = { withSiteVariants ? 'bullseye-arrow' : 'infinity' }
51- onClick = { ( ) => setSearchState ( { ...state , scope : 'all' , depth : 'single' } ) }
52- />
5354 { withSiteVariants ? (
5455 < SegmentedControlItem
5556 active = { state . scope === 'all' && state . depth === 'full' }
@@ -69,15 +70,13 @@ export function SearchScopeToggle(props: {
6970 active = { state . depth === 'single' }
7071 className = "py-1"
7172 label = { tString ( language , 'search_scope_current_depth_single' , spaceTitle ) }
72- // icon="crosshairs"
7373 onClick = { ( ) => setSearchState ( { ...state , depth : 'single' } ) }
7474 />
7575 < SegmentedControlItem
7676 size = { state . scope === 'current' ? 'small' : 'medium' }
7777 active = { state . depth === 'full' }
7878 className = "py-1"
79- label = { tString ( language , 'search_scope_current_depth_full' , section ?. title ) }
80- // icon="rectangle-vertical-history"
79+ label = { tString ( language , 'search_scope_current_depth_full' ) }
8180 onClick = { ( ) => setSearchState ( { ...state , depth : 'full' } ) }
8281 />
8382 </ SegmentedControl >
0 commit comments