NuxtN
Nuxt13mo ago
5 replies
Prem

How to set ` USlideover` component width?

Hi everyone!

I’m working with the USlideover component and trying to adjust its width on smaller screens. Specifically, I want the slider to take about 85% of the screen width on mobile devices.

Here’s what I’ve tried so far:
• Setting :ui="{ width: 'max-w-xs' }" worked for mobile but made the slider too small on larger screens.
• I also tried :ui="{ width: 'sm:max-w-xs' }", but it didn’t seem to work as expected.
CleanShot_2025-01-14_at_11.23.46.png
Was this page helpful?