mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-09 15:07:10 +02:00
fix: use dynamic viewport sizes
This commit is contained in:
@@ -73,7 +73,7 @@ export class ErrorBoundary extends Component<Props, State> {
|
||||
// App-level error: full screen error
|
||||
if (level === "app") {
|
||||
return (
|
||||
<div className="h-screen w-screen flex items-center justify-center bg-background p-8">
|
||||
<div className="h-dvh w-screen flex items-center justify-center bg-background p-8">
|
||||
<div className="max-w-2xl w-full border border-destructive bg-card p-8 space-y-6">
|
||||
<div className="flex items-center gap-3 text-destructive">
|
||||
<AlertTriangle className="h-8 w-8" />
|
||||
|
||||
@@ -61,7 +61,7 @@ export function AppShell({ children, hideBottomBar = false }: AppShellProps) {
|
||||
onOpenChange={setCommandLauncherOpen}
|
||||
/>
|
||||
<GlobalAuthPrompt />
|
||||
<main className="h-screen w-screen flex flex-col bg-background text-foreground">
|
||||
<main className="h-dvh w-screen flex flex-col bg-background text-foreground">
|
||||
<header className="flex flex-row items-center justify-between px-1 border-b border-border">
|
||||
<button
|
||||
onClick={() => setCommandLauncherOpen(true)}
|
||||
|
||||
@@ -60,7 +60,7 @@ export default function RunCommandPage() {
|
||||
|
||||
if (loading) {
|
||||
return (
|
||||
<div className="flex h-screen items-center justify-center bg-background">
|
||||
<div className="flex h-dvh items-center justify-center bg-background">
|
||||
<div className="text-muted-foreground">Loading command...</div>
|
||||
</div>
|
||||
);
|
||||
@@ -68,7 +68,7 @@ export default function RunCommandPage() {
|
||||
|
||||
if (!parsed || parsed.error || !parsed.command || !parsed.props) {
|
||||
return (
|
||||
<div className="flex h-screen items-center justify-center bg-background">
|
||||
<div className="flex h-dvh items-center justify-center bg-background">
|
||||
<div className="max-w-md rounded-lg border border-border bg-card p-6">
|
||||
<h2 className="mb-2 text-lg font-semibold text-destructive">
|
||||
Command Error
|
||||
|
||||
Reference in New Issue
Block a user