fix(app): can't scroll files

This commit is contained in:
Adam
2026-03-07 06:47:11 -06:00
parent 7dd6369952
commit 99d8aab0ac
4 changed files with 22 additions and 13 deletions

View File

@@ -446,9 +446,9 @@ export function FileTabContent(props: { tab: string }) {
)
return (
<Tabs.Content value={props.tab} class="mt-3 relative h-full">
<Tabs.Content value={props.tab} class="mt-3 relative flex h-full min-h-0 flex-col overflow-hidden contain-strict">
<ScrollView
class="h-full"
class="h-full min-h-0 flex-1"
viewportRef={(el: HTMLDivElement) => {
scroll = el
restoreScroll()

View File

@@ -347,6 +347,7 @@ export function MessageTimeline(props: {
placeholderTitle={placeholderTitle}
/>
<ScrollView
reverse
viewportRef={props.setScrollRef}
onWheel={(e) => {
const root = e.currentTarget