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: Absolute component with relative parent overflow the drawer-content and break the viewport in v3 (IOS) #2004

Closed
nabilfatih opened this issue Jun 15, 2023 · 1 comment

Comments

@nabilfatih
Copy link

nabilfatih commented Jun 15, 2023

What version of daisyUI are you using?

v3.1.0

Describe your issue

Hello, I've encountered a bug in the latest version (v3) of daisyUI on iOS devices (iPhone and iPad). The issue is related to an absolute positioned component within a relatively positioned parent, which causes the drawer-content to overflow and break the viewport. (Note that in v2 it works perfectly fine)

On desktop devices, the layout works perfectly fine and there are no issues. However, when I switch to my iPhone or iPad, the layout breaks and becomes unusable. Here are the screenshots to illustrate the problem:

  • Desktop using windows and macOS:
Screenshot 2023-06-15 230810
  • Ipad (Chrome):
    IMG_0710

  • Ipad (Safari):
    IMG_0711

here is a code snippet of that form bottom that demonstrates the problematic layout:

<main className="relative overflow-x-hidden text-sm scrollbar-hide">
   <section
      className={`container mx-auto h-screen max-w-7xl overflow-x-hidden`}
      >
      <!-- Virtualized Chat Message -->
   </section>
   <div class="absolute">
      <!-- The Form -->
   </div>
</main>

(Note: in v2 it works perfectly fine)

What browsers are you seeing the problem on?

Chrome, Safari, Edge

Reproduction URL (optional)

No response

@saadeghi
Copy link
Owner

fixed in 4.7.0

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

2 participants