style(problems, workspace): adjust ScrollArea height and flex layout

This commit is contained in:
cfngc4594 2025-03-09 14:46:43 +08:00
parent 3a75c3d415
commit ef753dd6c8
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ export default function ProblemLayout({
}: ProblemLayoutProps) {
return (
<Tabs defaultValue="description" className="h-full flex flex-col">
<ScrollArea className="bg-muted">
<ScrollArea className="h-9 flex-none bg-muted">
<TabsList>
<TabsTrigger value="description">
<FileTextIcon

View File

@ -9,7 +9,7 @@ interface WorkspaceLayoutProps {
export default function WorkspaceLayout({ editor }: WorkspaceLayoutProps) {
return (
<Tabs defaultValue="editor" className="h-full flex flex-col">
<ScrollArea className="bg-muted">
<ScrollArea className="h-9 flex-none bg-muted">
<TabsList>
<TabsTrigger value="editor">
<SquarePenIcon