{error ? (
diff --git a/frontend/src/app/useAppController.ts b/frontend/src/app/useAppController.ts
index 66d9908..3380444 100644
--- a/frontend/src/app/useAppController.ts
+++ b/frontend/src/app/useAppController.ts
@@ -133,10 +133,6 @@ export function useAppController() {
return () => media.removeEventListener('change', apply)
}, [theme])
- useEffect(() => {
- window.scrollTo({ top: 0, left: 0, behavior: 'auto' })
- }, [view])
-
const toggle = useCallback(async () => {
const { phase, recordingSessionId } = recordingObservation.current.snapshot
const processing = phase === 'Transcribing' || phase === 'Injecting'
diff --git a/frontend/src/styles/shell.css b/frontend/src/styles/shell.css
index 0105c2f..588a50c 100644
--- a/frontend/src/styles/shell.css
+++ b/frontend/src/styles/shell.css
@@ -1,14 +1,15 @@
.app-shell {
- min-height: 100vh;
+ display: flex;
+ height: 100vh;
+ flex-direction: column;
+ overflow: hidden;
background: hsl(var(--surface-app));
}
.topbar {
- position: sticky;
- z-index: 20;
- top: 0;
display: flex;
min-height: 4rem;
+ flex: none;
align-items: center;
justify-content: space-between;
gap: var(--space-4);
@@ -104,17 +105,15 @@
.workspace {
display: grid;
- min-height: calc(100vh - 4rem);
+ min-height: 0;
+ flex: 1;
grid-template-columns: 12rem minmax(0, 1fr);
+ grid-template-rows: minmax(0, 1fr);
}
.sidebar {
- position: sticky;
- top: 4rem;
display: flex;
- height: calc(100vh - 4rem);
min-width: 0;
- align-self: start;
flex-direction: column;
justify-content: space-between;
border-right: 1px solid hsl(var(--border-subtle));
@@ -195,9 +194,14 @@
.main-content {
min-width: 0;
+ overflow-y: auto;
padding: var(--space-6);
}
+.main-content:focus {
+ outline: none;
+}
+
.error-banner {
display: flex;
align-items: center;
diff --git a/frontend/src/styles/view-responsive.css b/frontend/src/styles/view-responsive.css
index 53ec168..fd23d2f 100644
--- a/frontend/src/styles/view-responsive.css
+++ b/frontend/src/styles/view-responsive.css
@@ -2,11 +2,7 @@
.topbar { padding-inline: var(--space-4); }
.workspace { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.sidebar {
- position: sticky;
- z-index: 15;
- top: 4rem;
display: block;
- height: auto;
border-right: 0;
border-bottom: 1px solid hsl(var(--border-subtle));
padding: var(--space-2) var(--space-3);
diff --git a/frontend/src/test/setup.ts b/frontend/src/test/setup.ts
index 8c14da0..115bd21 100644
--- a/frontend/src/test/setup.ts
+++ b/frontend/src/test/setup.ts
@@ -13,8 +13,3 @@ Object.defineProperty(window, 'matchMedia', {
dispatchEvent: () => false,
}),
})
-
-Object.defineProperty(window, 'scrollTo', {
- writable: true,
- value: () => {},
-})