Skip to content

Commit

Permalink
Fix scroll overflow issue caused by preflight change (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy authored Nov 20, 2023
1 parent 7d49201 commit 4305a39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/pages/EmailList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ export default function EmailList() {
}

return (
<div className="preflight">
<div ref={menuRef} className="mb-4">
<>
<div ref={menuRef} className="preflight mb-4">
<EmailMenuBar
emailIDs={selected}
showOperations={selected.length > 0}
Expand All @@ -223,7 +223,7 @@ export default function EmailList() {
</div>
<div
ref={emailViewRef}
className="mb-4 overflow-scroll rounded-md"
className="preflight mb-4 overflow-scroll rounded-md"
onScroll={() => {
if (!emailViewRef.current) return
setScrollYPosition(emailViewRef.current.scrollTop)
Expand All @@ -237,6 +237,6 @@ export default function EmailList() {
loadMoreEmails={loadMoreEmails}
/>
</div>
</div>
</>
)
}

0 comments on commit 4305a39

Please sign in to comment.