I'm trying to make my NextJS 14 app router application scale down on any device less than 500px width, as I'm making my app responsive down to 500px wide and anything below that I want it to scale down, previously I've used
Код: Выделить всё
min-width: 500px;
Код: Выделить всё
body
Код: Выделить всё
Код: Выделить всё
And that would work on Chrome and Safari mobile apps and everywhere else, however now with NextJS 14, I can't set this tag directly in the
Код: Выделить всё
Код: Выделить всё
layout.tsx
Код: Выделить всё
import type { Viewport } from 'next' export const viewport: Viewport = { width: 500, maximumScale: 1, userScalable: false, }
But this doesn't support
Код: Выделить всё
shrink-to-fit=yes
Is there a way to set the metatag with
Код: Выделить всё
shrink-to-fit=yes
Источник: https://stackoverflow.com/questions/781 ... -yes-issue