-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
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?
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",Metadata
Metadata
Assignees
Labels
No labels