Restore native iPad thread search
This commit is contained in:
1 parent
5a1138cf39
commit
ce72ed4eb8
2 files changed
+12
-12
No files matched your search
@@ -490,6 +490,17 @@ export function ThreadNavigationSidebar(props: {
|
||||
const { Screen, ScreenStack, ScreenStackHeaderConfig } =
|
||||
require("react-native-screens") as typeof import("react-native-screens");
|
||||
const nativeHeaderRightBarButtonItems = [
|
||||
{
|
||||
accessibilityLabel: "Open settings",
|
||||
icon: { name: "gearshape", type: "sfSymbol" },
|
||||
identifier: "thread-sidebar-settings",
|
||||
onPress: props.onOpenSettings,
|
||||
sharesBackground: true,
|
||||
tintColor: foregroundColor,
|
||||
type: "button",
|
||||
variant: "prominent",
|
||||
width: 58,
|
||||
},
|
||||
{
|
||||
accessibilityLabel: "Filter and sort threads",
|
||||
icon: { name: filterIcon, type: "sfSymbol" },
|
||||
@@ -561,17 +572,6 @@ export function ThreadNavigationSidebar(props: {
|
||||
variant: "prominent",
|
||||
width: 58,
|
||||
},
|
||||
{
|
||||
accessibilityLabel: "Open settings",
|
||||
icon: { name: "gearshape", type: "sfSymbol" },
|
||||
identifier: "thread-sidebar-settings",
|
||||
onPress: props.onOpenSettings,
|
||||
sharesBackground: true,
|
||||
tintColor: foregroundColor,
|
||||
type: "button",
|
||||
variant: "prominent",
|
||||
width: 58,
|
||||
},
|
||||
] as ComponentProps<typeof ScreenStackHeaderConfig>["headerRightBarButtonItems"];
|
||||
|
||||
return (
|
||||
|
||||
@@ -701,7 +701,7 @@ function ThreadRouteContent(
|
||||
projectScripts={selectedThreadProject?.scripts ?? []}
|
||||
terminalSessions={terminalMenuSessions}
|
||||
showDirectFileControl={layout.usesSplitView}
|
||||
showSearchSlot={false}
|
||||
showSearchSlot={layout.usesSplitView}
|
||||
onOpenTerminal={handleOpenTerminal}
|
||||
onOpenNewTerminal={handleOpenNewTerminal}
|
||||
onRunProjectScript={handleRunProjectScript}
|
||||
|
||||
Reference in new issue
Block a user