Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(sidebar): hide the update prompt on mobile (#9365)

dev-rb0c2585973cc0
diff --git a/apps/web/src/components/app/sidebar-next/footer-actions.tsx b/apps/web/src/components/app/sidebar-next/footer-actions.tsx
index 51f6371416..b8a52da7e1 100644
--- a/apps/web/src/components/app/sidebar-next/footer-actions.tsx
+++ b/apps/web/src/components/app/sidebar-next/footer-actions.tsx
@@ -8,6 +8,7 @@ import { useSettingsTabAvailable } from '@core/constant/settingsTabsConfig';
import { useEmail, useUserId } from '@core/context/user';
import { TOKENS } from '@core/hotkey/tokens';
import { isNativeMobilePlatform } from '@core/mobile/isNativeMobilePlatform';
+import { isTouchDevice } from '@core/mobile/isTouchDevice';
import DeviceMobileDownloadIcon from '@icon/device-mobile-download.svg';
import GearFillIcon from '@icon/system/fill/gear-fill.svg';
import GearIcon from '@icon/system/regular/gear.svg';
@@ -115,7 +116,7 @@ export const FooterActions = (props: {
return (
<div class="flex w-full shrink-0 flex-col items-center gap-1">
{/* Keyed by id: a new update remounts the button, so its popover opens again. */}
- <Show when={update()?.id} keyed>
+ <Show when={!isTouchDevice() && update()?.id} keyed>
{(_id) => (
<Show when={update()}>
{(current) => <UpdateButton update={current} />}
diff --git a/docs/agent-guide/navigation.md b/docs/agent-guide/navigation.md
index b70254aabd..fc57afd79d 100644
--- a/docs/agent-guide/navigation.md
+++ b/docs/agent-guide/navigation.md
@@ -43,6 +43,8 @@ failure in the same build, the rail's update button (a toast on touch layouts)
offers the reload; the offer reloads a hidden tab by itself only if that build's
one automatic reload is unspent. A failed route chunk can still end on the
root error screen, which hides the offer.
+The sidebar update button and its automatically opened popover are desktop-only,
+even when the sidebar is shown on a touch device.
## External links in the native app