Skip to content

Commit

Permalink
Try make screen full height on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkellly committed May 24, 2024
1 parent 19159d0 commit aef54e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ToastViewport = React.forwardRef<
<ToastPrimitives.Viewport
ref={ref}
className={cn(
'fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]',
'fixed top-0 z-[100] flex max-h-dvh w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]',
className
)}
{...props}
Expand All @@ -40,7 +40,7 @@ const toastVariants = cva(
const Toast = React.forwardRef<
React.ElementRef<typeof ToastPrimitives.Root>,
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &
VariantProps<typeof toastVariants>
VariantProps<typeof toastVariants>
>(({ className, variant, ...props }, ref) => {
return (
<ToastPrimitives.Root
Expand Down
2 changes: 1 addition & 1 deletion src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function ThemeToggle() {

function Index() {
return (
<main className="flex flex-col h-screen w-screen items-center justify-center container">
<main className="flex flex-col h-dvh w-screen items-center justify-center container">
<Card className="sm:m-4">
<CardHeader>
<CardTitle>BLD Ninja</CardTitle>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Timer() {
const cubeTimer = useCubeTimer();

return (
<div className="flex flex-col justify-between h-screen w-screen p-2">
<div className="flex flex-col justify-between h-dvh w-screen p-2">
<ActionBar />
<div className="bg-card rounded-lg border w-full relative grow mt-2">
<ScrambleDisplay />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/trainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const Route = createFileRoute('/trainer')({

function Trainer() {
return (
<div className="flex flex-col justify-between h-screen w-screen p-2">
<div className="flex flex-col justify-between h-dvh w-screen p-2">
<ActionBar />
</div>
);
Expand Down

0 comments on commit aef54e1

Please sign in to comment.