You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a layout that depends on CSS flexbox, some client only pages are broken because there seems to be a div element created by either NuxtLayout or NuxtPage possibly that is not a flex element. This ruins the page layout for my application.
The reproduction shows two pages, the index.vue page which fills the whole page, and About.vue which does not fill the whole page.
Additional context
In /about, the additional div is highlighted here in the following image.
While in the home page, you do not see the additional div, instead, the .page element is a direct child of #__nuxt.
The text was updated successfully, but these errors were encountered:
This is how client-only pages are implemented and is less a bug than a limitation. We could document this, though obviously I would prefer to remove the limitation if possible.
display: contents has very bad browser support
I think it would be probably better to allow adjusting the styles similar to how the useHead composable allows editing bodyAttrs
Environment
Reproduction
https://stackblitz.com/edit/github-2xmgnqmb?file=pages%2FAbout.client.vue
Describe the bug
With a layout that depends on CSS flexbox, some client only pages are broken because there seems to be a
div
element created by eitherNuxtLayout
orNuxtPage
possibly that is not a flex element. This ruins the page layout for my application.The reproduction shows two pages, the
index.vue
page which fills the whole page, andAbout.vue
which does not fill the whole page.Additional context
In
/about
, the additionaldiv
is highlighted here in the following image.While in the home page, you do not see the additional
div
, instead, the.page
element is a direct child of#__nuxt
.The text was updated successfully, but these errors were encountered: