diff --git a/messages/en-US.json b/messages/en-US.json index 57821a6d..8b04e4ea 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -1480,7 +1480,7 @@ "IAgreeToThe": "I agree to the", "termsOfService": "terms of service", "and": "and", - "privacyPolicy": "privacy policy" + "privacyPolicy": "privacy policy." }, "signUpMarketing": { "keepMeInTheLoop": "Keep me in the loop with news, updates, and new features by email." diff --git a/server/routers/client/getClient.ts b/server/routers/client/getClient.ts index cfb2652b..f054ce80 100644 --- a/server/routers/client/getClient.ts +++ b/server/routers/client/getClient.ts @@ -36,7 +36,7 @@ async function query(clientId?: number, niceId?: string, orgId?: string) { .select() .from(clients) .where(and(eq(clients.niceId, niceId), eq(clients.orgId, orgId))) - .leftJoin(olms, eq(olms.clientId, olms.clientId)) + .leftJoin(olms, eq(clients.clientId, olms.clientId)) .limit(1); return res; } diff --git a/src/app/[orgId]/settings/(private)/idp/create/page.tsx b/src/app/[orgId]/settings/(private)/idp/create/page.tsx index 786c8635..f6260073 100644 --- a/src/app/[orgId]/settings/(private)/idp/create/page.tsx +++ b/src/app/[orgId]/settings/(private)/idp/create/page.tsx @@ -285,7 +285,7 @@ export default function Page() { diff --git a/src/app/globals.css b/src/app/globals.css index 70c614c0..731e1bff 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -178,4 +178,16 @@ p { .animate-dot-pulse { animation: dot-pulse 1.4s ease-in-out infinite; } + + /* Use JavaScript-set viewport height for mobile to handle keyboard properly */ + .h-screen-safe { + height: 100vh; /* Default for desktop and fallback */ + } + + /* Only apply custom viewport height on mobile */ + @media (max-width: 767px) { + .h-screen-safe { + height: var(--vh, 100vh); /* Use CSS variable set by ViewportHeightFix on mobile */ + } + } } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e76a5d2f..203dd778 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -22,6 +22,7 @@ import { TopLoader } from "@app/components/Toploader"; import Script from "next/script"; import { TanstackQueryProvider } from "@app/components/TanstackQueryProvider"; import { TailwindIndicator } from "@app/components/TailwindIndicator"; +import { ViewportHeightFix } from "@app/components/ViewportHeightFix"; export const metadata: Metadata = { title: `Dashboard - ${process.env.BRANDING_APP_NAME || "Pangolin"}`, @@ -77,7 +78,7 @@ export default async function RootLayout({ return ( - + {build === "saas" && (