Closed KeoneSomers closed 1 year ago
Thanks for the report 😊
Hi All, How can I change the width of a UModal component? I´m trying to do this, but no success. Thanks in advance.
@lisisistemas
You can try to add
<UModal :ui="{ width: 'w-full sm:max-w-3xl' }">
at your UModal.
I had the same issue, but I managed to get through based on the documentation here https://ui.nuxt.com/getting-started/theming
Environment
Version
v2.9.0
Reproduction
https://ui.nuxt.com/overlays/modal#fullscreen
You can simple head to the docs for the fullscreen modal, open the modal and resize the browser to a smaller mobile size and the padding will appear around the modal.
Description
When using the UModal component with the "fullscreen" prop and changing the screen size to mobile using the browser dev tools, the modal gains a p-4 class on the backdrop element that is not normally there when fullscreen is enabled.
This effect only seems to occur on mobile screens and when the screen size is increased the padding is lost and the fullscreen modal looks normal again.
I have also been able to reproduce it on a mobile device and had the same effect.
Due to the extra padding, on mobile the screen agains a scrollbar to account for the extra vertical space.
Additional context
Logs
No response