Skip to content

Commit 7517fec

Browse files
committed
fix: allow solution panel to scroll with page when model answer is long
1 parent 32fc633 commit 7517fec

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/problem/SolutionPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export default function SolutionPanel({ problem }: { problem: Problem }) {
1919
}, []);
2020

2121
return (
22-
<div className="flex h-full flex-col overflow-hidden p-5 sm:p-6">
22+
<div className="flex flex-col p-5 sm:p-6">
2323
{/* editor */}
24-
<div className="flex min-h-0 flex-1 flex-col">
24+
<div className="flex h-[50vh] flex-col">
2525
<MarkdownEditor problemId={problem.id} onNoteRef={handleNoteRef} />
2626
</div>
2727

src/components/problem/SplitView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function SplitView({
1212
{left}
1313
</div>
1414
{/* right pane */}
15-
<div className="flex flex-col lg:sticky lg:top-14 lg:h-[calc(100vh-3.5rem)] lg:w-1/2">{right}</div>
15+
<div className="flex flex-col lg:min-h-[calc(100vh-3.5rem)] lg:w-1/2">{right}</div>
1616
</div>
1717
);
1818
}

0 commit comments

Comments
 (0)