From e59c2af818c3d9a4682fc9f80d72bbd68d4e0ed2 Mon Sep 17 00:00:00 2001 From: Alex <49969959+alexzhang1030@users.noreply.github.com> Date: Sun, 30 Jul 2023 02:45:30 +0800 Subject: [PATCH] fix: cannot fullscreen due to `Permission-Policy` (#2281) --- nuxt.config.ts | 3 +++ styles/global.css | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 4f9564e8..8e17ec61 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -242,6 +242,9 @@ export default defineNuxtConfig({ 'style-src': ['\'self\'', '\'unsafe-inline\''], 'upgrade-insecure-requests': true, }, + permissionsPolicy: { + fullscreen: ['\'self\'', 'https:', 'http:'], + }, }, rateLimiter: false, }, diff --git a/styles/global.css b/styles/global.css index 81e64992..9887daf0 100644 --- a/styles/global.css +++ b/styles/global.css @@ -165,7 +165,7 @@ em-emoji-picker { html, body, #__nuxt { - height: 100vh; + min-height: 100vh; margin: 0; padding: 0; }