-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from bob2402/fix-scroll
problem: can't scroll problem list and problem text
- Loading branch information
Showing
3 changed files
with
74 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
<script lang="ts"> | ||
import * as Resizable from '$lib/components/ui/resizable'; | ||
import { ScrollArea } from '@/components/ui/scroll-area'; | ||
</script> | ||
|
||
<Resizable.PaneGroup direction="horizontal" class="h-full items-stretch overflow-hidden"> | ||
<Resizable.Pane defaultSize={20} minSize={10} maxSize={50}> | ||
<ScrollArea class="h-full pl-2 pr-2"><slot name="list" /></ScrollArea></Resizable.Pane | ||
> | ||
<slot name="list" /> | ||
</Resizable.Pane> | ||
|
||
<Resizable.Handle withHandle /> | ||
<Resizable.Pane maxSize={85} | ||
><ScrollArea class="h-full pl-2 pr-2"><slot name="problem" /></ScrollArea> | ||
</Resizable.Pane> | ||
<Resizable.Pane maxSize={85}><slot name="problem" /></Resizable.Pane> | ||
</Resizable.PaneGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters