Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Drawer contents make contents over screen on mobile. #2060

Closed
seunex17 opened this issue Jun 26, 2023 · 3 comments
Closed

bug: Drawer contents make contents over screen on mobile. #2060

seunex17 opened this issue Jun 26, 2023 · 3 comments

Comments

@seunex17
Copy link

What version of daisyUI are you using?

v3.0.1

Describe your issue

Look like there is a problem when using an external classes in a drawer contents. The designs are perfect on version 2 but look broken on v3.

In my pages i am using a slider library swiperjs any time it in the drawer-content is overlap the screen. But when you move it out of the drawer conte tents it remain perfect.

P.S this does look okay on PC and Tablet view but only affect the mobile views please take a look the screen below.

PC:
image

Tablet PC:
image

On Mobile Device: (V3)
image

Mobile device (v2)
image

Am not sure why but just find it this way. No much worries on my end i just have to rollback to v2 and keep building with it.
But any one who try to build with diasy ui and going to use Drawer and a slider packages like SwiperJs or Splide with face this problem.

What browsers are you seeing the problem on?

Chrome, Firefox, Edge

Reproduction URL (optional)

No response

@seunex17 seunex17 changed the title Drawer contents make contents over screen on mobile. bug: Drawer contents make contents over screen on mobile. Jun 26, 2023
@saadeghi
Copy link
Owner

It's really hard to guess what is the issue when you don't provide a reproduction repo or a code example, my friend.

@seunex17
Copy link
Author

@saadeghi I am not very experienced in reporting issues and bugs, but a quick way to reproduce the problem is by setting up a new project with Daisy UI and using the drawer component to wrap the page contents. Then, try using one of the slider packages like Swiper.js or Splide. The responsiveness may be an issue on mobile devices, whereas it looks perfect on PCs. I will prepare a reproduction code for this today. Thank you.

@Bewinxed
Copy link

No idea why this fixes it but it fixes it

Set overflow x auto on the collapse content div

#1914 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants