From f495f97352b1fa759d206166fb5233a0cb78397d Mon Sep 17 00:00:00 2001 From: alsaze Date: Wed, 8 Oct 2025 17:59:26 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D1=8E=20=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D0=B5=D0=B3=D1=83=20=D1=82=D0=BE=D0=B2=D0=B0=D1=80?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scss/main.scss | 4 ++-- nuxt.config.ts | 10 ++++++++++ pages/product/[id].vue | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/assets/scss/main.scss b/assets/scss/main.scss index 2fcee9c..89cfd58 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -58,7 +58,7 @@ body { //swiper .swiper { width: 100%; - height: calc(100vh - 54px); + height: calc(100dvh - 54px); } .swiper-slide { @@ -75,7 +75,7 @@ body { .swiper-slide img { display: block; width: 100%; - height: calc(100vh - 54px); + height: calc(100dvh - 54px); object-fit: cover; } diff --git a/nuxt.config.ts b/nuxt.config.ts index 2e13cec..0d50801 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -13,4 +13,14 @@ export default defineNuxtConfig({ strategy: 'prefix_except_default', detectBrowserLanguage: false, }, + app: { + head: { + meta: [ + { + name: 'viewport', + content: 'width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover, user-scalable=no', + }, + ], + }, + }, }) diff --git a/pages/product/[id].vue b/pages/product/[id].vue index 90058b3..bca07ab 100644 --- a/pages/product/[id].vue +++ b/pages/product/[id].vue @@ -5,6 +5,7 @@ v-model:open="open" :class="{ animated: !isSwiping }" :style="{ top }" + :snap-points="[0.5, 1]" >