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: tables are not responsive when using drawer #2262

Closed
durosly opened this issue Aug 18, 2023 · 3 comments
Closed

bug: tables are not responsive when using drawer #2262

durosly opened this issue Aug 18, 2023 · 3 comments

Comments

@durosly
Copy link

durosly commented Aug 18, 2023

What version of daisyUI are you using?

3.1.9

Describe your issue

Tables are not responsive with the overflow-x-auto container. When I changed the drawer display from grid to block, it worked just fine

What browsers are you seeing the problem on?

I tried it on both google chrome and Firefox. Same issue

Reproduction URL

No response

@0xChupaCabra
Copy link

I have the same problem using latest daisyUI version, as a temporary solution you can add overflow-x-auto to drawer-content.
Source #1914

@durosly
Copy link
Author

durosly commented Sep 15, 2023

That would add a scroll-bar to the drawer-content

@timB73
Copy link

timB73 commented Sep 26, 2023

When I do overflow-x-auto on drawer-content it doesn't seem to have any effect, the scrollbar is still across the entire page, not just drawer-content. It seems the issue is with the way the grid is setup, the only way I could get it to work was to do (320px is the sidebar width):

  .drawer {
    grid-template-columns: 0px 100%;
  }

  .drawer-open {
    grid-template-columns: 320px calc(100% - 320px);
  }

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