Skip to content

White borders with iphone PWA landscape #404

@redbo

Description

@redbo

Hello,

I am having this problem where Pattern Projector as a PWA on my iphone in landscape mode has these white letterbox borders. Maybe it started with the iOS 26 upgrade?

Image

I'm running it locally modified to have viewport-fit=cover added to the viewport metadata, and that seems to let it fullscreen again. But I'm not sure if there are consequences for other platforms.

diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx
index b1d773b..4b8a4f1 100644
--- a/app/[locale]/layout.tsx
+++ b/app/[locale]/layout.tsx
@@ -17,7 +17,7 @@ export const metadata: Metadata = {
   metadataBase: new URL(APP_URL),
   description: "Calibrate your projector for sewing patterns",
   viewport:
-    "width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no",
+    "viewport-fit=cover, width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no",
   applicationName: APP_TITLE,
   title: APP_TITLE,
   manifest: "/manifest.json",
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions