Skip to content

Commit

Permalink
fix(ui): Full height
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Mar 5, 2024
1 parent 9d19d0d commit 88e308b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ interface RootLayoutProps {
export default function RootLayout({ children }: RootLayoutProps) {
return (
<>
<html lang="en" suppressHydrationWarning>
<html lang="en" className="h-full" suppressHydrationWarning>
<head />
<body
className={cn(
"min-h-screen bg-background font-sans antialiased",
"h-full min-h-screen bg-background font-sans antialiased",
fontSans.className
)}
>
Expand All @@ -40,4 +40,4 @@ export default function RootLayout({ children }: RootLayoutProps) {
</html>
</>
)
}
}
26 changes: 13 additions & 13 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ export default function DashboardPage() {

return (
<>
<DefaultQueryClientProvider>
<SelectedWorkflowProvider>
<div className="flex flex-col h-screen">
<Navbar />
<div className="flex flex-col flex-grow">
<Workspace
defaultLayout={defaultLayout}
defaultCollapsed={defaultCollapsed}
navCollapsedSize={4}
/>
<DefaultQueryClientProvider>
<SelectedWorkflowProvider>
<div className="flex flex-col h-screen">
<Navbar />
<div className="flex flex-col flex-grow">
<Workspace
defaultLayout={defaultLayout}
defaultCollapsed={defaultCollapsed}
navCollapsedSize={4}
/>
</div>
</div>
</div>
</SelectedWorkflowProvider>
</DefaultQueryClientProvider>
</SelectedWorkflowProvider>
</DefaultQueryClientProvider>
</>
)
}
2 changes: 1 addition & 1 deletion frontend/src/components/workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function Workspace({
sizes
)}`
}}
className="h-full max-h-[800px] items-stretch"
className="h-full items-stretch"
>
<ResizablePanel
defaultSize={defaultLayout[0]}
Expand Down

0 comments on commit 88e308b

Please sign in to comment.