Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Train fix (#7884): folding Tools keeps the phone and update buttons

milind-soni6c8b344c9656
diff --git a/src/components/SidebarFooter.tsx b/src/components/SidebarFooter.tsx
index 05fd64dd04..db3b4ce6a0 100644
--- a/src/components/SidebarFooter.tsx
+++ b/src/components/SidebarFooter.tsx
@@ -68,7 +68,7 @@ function ToolsFoldButton({ collapsed, alert, onToggle }: { collapsed: boolean; a
className="relative mx-auto flex size-[46px] shrink-0 items-center justify-center rounded-xl text-ink-secondary hover:bg-raised hover:text-ink"
>
<Chevron size={18} aria-hidden="true" />
- {alert && <span data-testid="section-alert" aria-hidden="true" className="absolute right-2 top-2 size-2 rounded-full bg-danger" />}
+ {alert && <span data-testid="section-alert" aria-hidden="true" className="absolute end-2 top-2 size-2 rounded-full bg-danger" />}
</button>
);
}
@@ -92,9 +92,9 @@ export function SidebarFooter({ density, simple = false, owner = null, archived,
{toolsOpen && <SidebarFooterNav density={density} collapsed={toolsCollapsed} onToggleCollapsed={onToggleTools} />}
{icons ? (
<>
- {toolsOpen && <SidebarPhoneButton density={density} onOpen={() => dispatch(phoneSettingsAction())} />}
+ <SidebarPhoneButton density={density} onOpen={() => dispatch(phoneSettingsAction())} />
<div className="flex flex-col items-center justify-center gap-1">
- {toolsOpen && <UpdateIndicator />}
+ <UpdateIndicator />
<SidebarProfileMenu iconOnly />
</div>
</>