File tree Expand file tree Collapse file tree
apps/web/src/components/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1047,31 +1047,34 @@ export function GeneralSettingsPanel() {
10471047 </ Select >
10481048 }
10491049 />
1050- < SettingsRow
1051- { ...searchableSetting ( "history-swipe-navigation" ) }
1052- description = "Swipe two fingers sideways to go back or forward."
1053- resetAction = {
1054- settings . historySwipeNavigation !== DEFAULT_UNIFIED_SETTINGS . historySwipeNavigation ? (
1055- < SettingResetButton
1056- label = "swipe to navigate"
1057- onClick = { ( ) =>
1058- updateSettings ( {
1059- historySwipeNavigation : DEFAULT_UNIFIED_SETTINGS . historySwipeNavigation ,
1060- } )
1050+ { isElectron ? (
1051+ < SettingsRow
1052+ { ...searchableSetting ( "history-swipe-navigation" ) }
1053+ description = "Swipe two fingers sideways to go back or forward."
1054+ resetAction = {
1055+ settings . historySwipeNavigation !==
1056+ DEFAULT_UNIFIED_SETTINGS . historySwipeNavigation ? (
1057+ < SettingResetButton
1058+ label = "swipe to navigate"
1059+ onClick = { ( ) =>
1060+ updateSettings ( {
1061+ historySwipeNavigation : DEFAULT_UNIFIED_SETTINGS . historySwipeNavigation ,
1062+ } )
1063+ }
1064+ />
1065+ ) : null
1066+ }
1067+ control = {
1068+ < Switch
1069+ checked = { settings . historySwipeNavigation }
1070+ onCheckedChange = { ( checked ) =>
1071+ updateSettings ( { historySwipeNavigation : Boolean ( checked ) } )
10611072 }
1073+ aria-label = "Swipe to navigate"
10621074 />
1063- ) : null
1064- }
1065- control = {
1066- < Switch
1067- checked = { settings . historySwipeNavigation }
1068- onCheckedChange = { ( checked ) =>
1069- updateSettings ( { historySwipeNavigation : Boolean ( checked ) } )
1070- }
1071- aria-label = "Swipe to navigate"
1072- />
1073- }
1074- />
1075+ }
1076+ />
1077+ ) : null }
10751078 </ SettingsSection >
10761079 </ SettingsPageContainer >
10771080 ) ;
Original file line number Diff line number Diff line change @@ -681,6 +681,7 @@ export const SETTINGS_SEARCH_ITEMS = [
681681 title : "Swipe to navigate" ,
682682 to : "/settings/general" ,
683683 searchTerms : [ "trackpad two finger horizontal back forward history gesture desktop" ] ,
684+ desktopOnly : true ,
684685 } ,
685686 {
686687 id : "response-streaming" ,
You can’t perform that action at this time.
0 commit comments