fix(app): can't scroll files
This commit is contained in:
parent
7dd6369952
commit
99d8aab0ac
4 changed files with 22 additions and 13 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -347,6 +347,7 @@ export function MessageTimeline(props: {
|
|||
placeholderTitle={placeholderTitle}
|
||||
/>
|
||||
<ScrollView
|
||||
reverse
|
||||
viewportRef={props.setScrollRef}
|
||||
onWheel={(e) => {
|
||||
const root = e.currentTarget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue