Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

fix(desktop): only the active view is shown

Salman Qureshi2e9024f7fbfb
diff --git a/apps/desktop/src/layout/Workspace.tsx b/apps/desktop/src/layout/Workspace.tsx
index dbf2065b..51fbb1e2 100644
--- a/apps/desktop/src/layout/Workspace.tsx
+++ b/apps/desktop/src/layout/Workspace.tsx
@@ -40,8 +40,11 @@ export function Workspace({ connection, health, onSwitchConnection }: { connecti
}
function Pane({ active, children }: { active: boolean; children: React.ReactNode }) {
+ // A class, not the `hidden` attribute: Tailwind's preflight gives the
+ // attribute zero specificity, so a `flex` class would win and show every
+ // pane at once.
return (
- <div className="absolute inset-0 flex flex-col" hidden={!active} aria-hidden={!active}>
+ <div className={active ? "absolute inset-0 flex flex-col" : "hidden"} aria-hidden={!active}>
{children}
</div>
);