Skip to content

Commit 4247c49

Browse files
committed
[TOOL-3038] Replace h-screen with h-dvh - fix iOS safari height issues
1 parent 5c55473 commit 4247c49

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

apps/dashboard/src/@/components/blocks/SettingsCard.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const Mobile: Story = {
2828

2929
function Story() {
3030
return (
31-
<div className="min-h-screen bg-background py-6 text-foreground">
31+
<div className="min-h-dvh bg-background py-6 text-foreground">
3232
<div className="container flex max-w-[1100px] flex-col gap-10 lg:p-10">
3333
<BadgeContainer label="No Header">
3434
<SettingsCard

apps/dashboard/src/@/components/ui/button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const AllVariants: Story = {
2020

2121
function Component() {
2222
return (
23-
<div className="flex min-h-screen flex-col gap-6 bg-background p-6 text-foreground">
23+
<div className="flex min-h-dvh flex-col gap-6 bg-background p-6 text-foreground">
2424
<Variants size="default" />
2525
<Variants size="sm" />
2626
<Variants size="icon" />

apps/dashboard/src/@/components/ui/select.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function randomName() {
3131

3232
function Component() {
3333
return (
34-
<div className="flex min-h-screen flex-col gap-10 bg-background p-6 text-foreground">
34+
<div className="flex min-h-dvh flex-col gap-10 bg-background p-6 text-foreground">
3535
<BadgeContainer label="5 items, no placeholder, no label, value filled">
3636
<SelectDemo listItems={5} selectFirst />
3737
</BadgeContainer>

apps/dashboard/src/app/(dashboard)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function DashboardLayout(props: {
77
}) {
88
return (
99
<ErrorProvider>
10-
<div className="flex min-h-screen flex-col bg-background">
10+
<div className="flex min-h-dvh flex-col bg-background">
1111
<div className="border-border border-b bg-muted/50">
1212
<TeamHeader />
1313
</div>

apps/dashboard/src/app/account/components/AccountHeaderUI.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Variants(props: {
4747

4848
return (
4949
<ThirdwebProvider>
50-
<div className="flex min-h-screen flex-col gap-6 bg-gray-700 px-4 py-10">
50+
<div className="flex min-h-dvh flex-col gap-6 bg-gray-700 px-4 py-10">
5151
<BadgeContainer label="Account Loaded">
5252
<Comp
5353
teamsAndProjects={teamsAndProjectsStub}

apps/dashboard/src/app/account/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default async function AccountLayout(props: {
2020
}
2121

2222
return (
23-
<div className="flex min-h-screen flex-col bg-background">
23+
<div className="flex min-h-dvh flex-col bg-background">
2424
<div className="flex grow flex-col">
2525
<HeaderAndNav teams={teams} twAccount={account} />
2626
{props.children}

apps/dashboard/src/app/drops/[slug]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ErrorProvider } from "contexts/error-handler";
44
export default function DashboardLayout(props: { children: React.ReactNode }) {
55
return (
66
<ErrorProvider>
7-
<div className="flex min-h-screen flex-col bg-background">
7+
<div className="flex min-h-dvh flex-col bg-background">
88
{/* <DashboardHeader /> */}
99
<div className="flex grow flex-col">{props.children}</div>
1010
<AppFooter />

apps/dashboard/src/app/login/LoginPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function LoginAndOnboardingPage(props: {
4848
redirectPath: string;
4949
}) {
5050
return (
51-
<div className="relative flex min-h-screen flex-col overflow-hidden bg-background">
51+
<div className="relative flex min-h-dvh flex-col overflow-hidden bg-background">
5252
<div className="border-b bg-background">
5353
<header className="container flex w-full flex-row items-center justify-between px-6 py-4">
5454
<div className="flex shrink-0 items-center gap-3">

apps/dashboard/src/app/nebula-app/(app)/components/ChatPageLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function ChatPageLayout(props: {
1515
return (
1616
<div
1717
className={cn(
18-
"flex h-screen flex-col overflow-hidden bg-background lg:flex-row",
18+
"flex h-dvh flex-col overflow-hidden bg-background lg:flex-row",
1919
props.className,
2020
)}
2121
>

apps/dashboard/src/app/nebula-app/(app)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function NebulaWaitlistPage(props: {
6767
team: Team;
6868
}) {
6969
return (
70-
<div className="flex min-h-screen flex-col overflow-hidden">
70+
<div className="flex min-h-dvh flex-col overflow-hidden">
7171
<header className="border-b">
7272
<div className="container flex items-center justify-between px-4 py-3">
7373
<div className="flex items-center gap-2 font-medium text-xl tracking-tight">

apps/dashboard/src/app/nebula-app/[...not-found]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TrackedLinkTW } from "@/components/ui/tracked-link";
33
export default function NebulaNotFound() {
44
return (
55
<div className="overflow-hidden">
6-
<div className="container flex h-full min-h-screen flex-col justify-center">
6+
<div className="container flex h-full min-h-dvh flex-col justify-center">
77
<div className="flex flex-col items-center">
88
<div className="z-10 flex size-[90px] items-center justify-center rounded-3xl border bg-background font-semibold text-2xl text-muted-foreground tracking-tight shadow-lg md:size-[100px] md:text-3xl">
99
404

apps/dashboard/src/app/nebula-app/login/NebulaLoginPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function NebulaLoginPage(props: {
1616
props.account ? "connect" : "welcome",
1717
);
1818
return (
19-
<div className="relative flex min-h-screen flex-col overflow-hidden bg-background">
19+
<div className="relative flex min-h-dvh flex-col overflow-hidden bg-background">
2020
{/* nav */}
2121
<header className="border-b">
2222
<div className="container flex items-center justify-between p-4">

apps/dashboard/src/app/project-showcase/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default async function ProjectShowcasePage(props: {
6767
);
6868

6969
return (
70-
<div className="min-h-screen bg-background">
70+
<div className="min-h-dvh bg-background">
7171
<section className="w-full">
7272
<div className="container px-4 md:px-6">
7373
<div className="grid gap-6 lg:grid-cols-[1fr_400px] lg:gap-12 xl:grid-cols-[1fr_600px]">

apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/general/Sidebar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function Story(props: {
4242
type: "mobile" | "desktop";
4343
}) {
4444
return (
45-
<div className="container min-h-screen py-6 text-foreground">
45+
<div className="container min-h-dvh py-6 text-foreground">
4646
{props.type === "desktop" && (
4747
<div className="flex flex-col gap-10">
4848
<BadgeContainer label="account loaded">

apps/dashboard/src/app/team/[team_slug]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default async function RootTeamLayout(props: {
1515
}
1616

1717
return (
18-
<div className="flex min-h-screen flex-col">
18+
<div className="flex min-h-dvh flex-col">
1919
<div className="flex grow flex-col">{props.children}</div>
2020
<TWAutoConnect />
2121
<AppFooter />

apps/dashboard/src/app/team/components/TeamHeader/TeamHeaderLoggedOut.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function Variants(props: {
4242
: TeamHeaderLoggedOutDesktopUI;
4343

4444
return (
45-
<div className="container min-h-screen bg-zinc-900 py-10">
45+
<div className="container min-h-dvh bg-zinc-900 py-10">
4646
<div className="bg-background">
4747
<Comp />
4848
</div>

apps/dashboard/src/app/team/components/TeamHeader/TeamHeaderUI.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function Variants(props: {
5252
}
5353
return (
5454
<ThirdwebProvider>
55-
<div className="flex min-h-screen flex-col gap-6 bg-gray-700 px-4 py-10">
55+
<div className="flex min-h-dvh flex-col gap-6 bg-gray-700 px-4 py-10">
5656
<BadgeContainer label="Team Free, Account Loaded">
5757
<Comp
5858
teamsAndProjects={teamsAndProjectsStub}

apps/dashboard/src/components/dashboard/StepsCard.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Component(props: {
5656
}) {
5757
const { cardTitle, cardDescription } = props;
5858
return (
59-
<div className="min-h-screen bg-background p-4 text-foreground">
59+
<div className="min-h-dvh bg-background p-4 text-foreground">
6060
<div className="mx-auto flex max-w-[1000px] flex-col gap-12">
6161
<BadgeContainer label="2 steps, 0 Completed">
6262
<StepsCard

apps/dashboard/src/components/not-found-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TrackedLinkTW } from "@/components/ui/tracked-link";
33
export function NotFoundPage() {
44
return (
55
<div className="overflow-hidden">
6-
<div className="container flex h-full min-h-screen flex-col justify-center">
6+
<div className="container flex h-full min-h-dvh flex-col justify-center">
77
<div className="flex flex-col items-center">
88
<div className="z-10 flex size-[90px] items-center justify-center rounded-3xl border bg-background font-semibold text-2xl text-muted-foreground tracking-tight shadow-lg md:size-[100px] md:text-3xl">
99
404

apps/dashboard/src/components/settings/Account/Billing/GatedSwitch.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const AllVariants: Story = {
2222

2323
function Variants() {
2424
return (
25-
<div className="min-h-screen bg-background p-7 text-foreground">
25+
<div className="min-h-dvh bg-background p-7 text-foreground">
2626
<div className="mx-auto flex max-w-[500px] flex-col gap-8">
2727
<BadgeContainer label="upgradeRequired">
2828
<GatedSwitch upgradeRequired />

apps/playground-web/src/app/AppSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { otherLinks } from "./otherLinks";
77

88
export function AppSidebar() {
99
return (
10-
<div className="sticky top-0 z-10 hidden h-screen w-[300px] flex-col border-border/50 border-r-2 xl:flex">
10+
<div className="sticky top-0 z-10 hidden h-dvh w-[300px] flex-col border-border/50 border-r-2 xl:flex">
1111
<div className="px-6 pt-6">
1212
<Link
1313
className="flex items-center gap-2"

0 commit comments

Comments
 (0)