We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
html
body
Hi, I'd like to add a body class when a modal is opened, this is reposition my Toast container. My toast are offset under my fixed header:
But if a modal trigger a Toast, I don't want the offset.
Currently:
Desired:
The text was updated successfully, but these errors were encountered:
Took me a while, but I guess this is the solution:
import { createVfm, type Vfm } from 'vue-final-modal'; export default defineNuxtPlugin((nuxtApp) => { const vfm = createVfm() as Vfm; const { openedModals } = vfm; watch(openedModals, (opened) => { if (opened.length) { document.documentElement.classList.add('has-vfm'); } else { document.documentElement.classList.remove('has-vfm'); } }); nuxtApp.vueApp.use(vfm); });
Sorry, something went wrong.
hunterliu1003
No branches or pull requests
Hi,

I'd like to add a body class when a modal is opened, this is reposition my Toast container.
My toast are offset under my fixed header:
But if a modal trigger a Toast, I don't want the offset.
Currently:

Desired:

The text was updated successfully, but these errors were encountered: