Skip to content

Commit

Permalink
fix logs scrolling on mobile (#11045)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 authored Apr 19, 2024
1 parent c83c139 commit 3ca2d59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion web/src/components/overlay/LogInfoDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export default function LogInfoDialog({
}
}}
>
<Content className={isDesktop ? "" : "max-h-[75dvh] p-2 overflow-hidden"}>
<Content
className={isDesktop ? "" : "max-h-[75dvh] p-2 pb-4 overflow-hidden"}
>
{logLine && (
<div className="size-full flex flex-col gap-5">
<div className="w-min flex flex-col gap-1.5">
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function Logs() {
</div>
<div
ref={contentRef}
className="w-full flex flex-col overflow-y-auto no-scrollbar"
className="w-full flex flex-col overflow-y-auto no-scrollbar overscroll-contain"
>
{logLines.length > 0 &&
[...Array(logRange.end).keys()].map((idx) => {
Expand Down

0 comments on commit 3ca2d59

Please sign in to comment.