Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): keep settings sidebar fixed (#1714)

Call Whitedcd879c229b6
diff --git a/ui/src/components/settings/SettingsLayout.test.tsx b/ui/src/components/settings/SettingsLayout.test.tsx
index a12e9c9aa..17c101026 100644
--- a/ui/src/components/settings/SettingsLayout.test.tsx
+++ b/ui/src/components/settings/SettingsLayout.test.tsx
@@ -103,16 +103,21 @@ afterEach(() => {
});
describe('SettingsLayout', () => {
- it('keeps the mobile shell constrained so the route pane owns vertical scrolling', () => {
+ it('keeps the settings rail fixed while the route pane owns vertical scrolling', () => {
renderLayout('/settings/replies');
const routePane = screen.getByText('replies-body').closest('section');
const shell = routePane?.parentElement?.parentElement;
+ const navigation = screen.getByRole('navigation', { name: 'settings.navigationLabel' });
expect(routePane?.className).toContain('overflow-y-auto');
+ expect(navigation.className).not.toContain('overflow-y-auto');
+ expect(navigation.firstElementChild?.className).toContain('overflow-y-auto');
expect(shell?.className).toContain('h-full');
expect(shell?.className).toContain('min-h-0');
- expect(shell?.className).toContain('md:h-auto');
+ expect(shell?.className).toContain('overflow-hidden');
+ expect(shell?.className).toContain('md:h-[var(--app-shell-h)]');
+ expect(shell?.className).not.toContain('md:h-auto');
expect(shell?.className).not.toContain('min-h-full');
});
diff --git a/ui/src/components/settings/SettingsLayout.tsx b/ui/src/components/settings/SettingsLayout.tsx
index e17a4b647..ab43c33b1 100644
--- a/ui/src/components/settings/SettingsLayout.tsx
+++ b/ui/src/components/settings/SettingsLayout.tsx
@@ -273,7 +273,7 @@ export const SettingsLayout: React.FC = () => {
}, [atRoot, capabilities.can_manage_instance, isDesktop, navigate]);
return (
- <div className="flex h-full min-h-0 flex-col bg-background md:h-auto md:min-h-screen">
+ <div className="flex h-full min-h-0 flex-col overflow-hidden bg-background md:h-[var(--app-shell-h)]">
<header className="flex h-[calc(3.5rem+env(safe-area-inset-top))] shrink-0 items-center justify-between border-b border-border bg-surface px-4 pt-[env(safe-area-inset-top)] md:h-14 md:pt-0">
<div className="flex min-w-0 items-center gap-2 text-[13px] font-semibold text-foreground">
<Settings className="size-4 text-mint-ink" />