Skip to content

Commit 8d3c56b

Browse files
authored
fix(web): hide sidebar search shortcut on mobile (pingdotgg#9932)
1 parent 311f05c commit 8d3c56b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎apps/web/src/components/LegacySidebar.tsx‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,11 +3610,9 @@ export default function LegacySidebar() {
36103610
desktopUpdateState && showArm64IntelBuildWarning
36113611
? getArm64IntelBuildWarningDescription(desktopUpdateState)
36123612
: null;
3613-
const commandPaletteShortcutLabel = shortcutLabelForCommand(
3614-
keybindings,
3615-
"commandPalette.toggle",
3616-
newThreadShortcutLabelOptions,
3617-
);
3613+
const commandPaletteShortcutLabel = isMobile
3614+
? null
3615+
: shortcutLabelForCommand(keybindings, "commandPalette.toggle", newThreadShortcutLabelOptions);
36183616
const handleDesktopUpdateButtonClick = useCallback(async () => {
36193617
const bridge = window.desktopBridge;
36203618
if (!bridge || !desktopUpdateState) return;

0 commit comments

Comments
 (0)