Skip to content

bug: Setting tooltip-end for tooltip after render lefts extra space on right side only on mobile #4610

Description

@uh-zuh

Reproduction URL (Required)

https://github.com/uh-zuh/saadeghi_daisyui_bug_tooltip_top_end

What version of daisyUI are you using?

v5.6.12

Which browsers are you seeing the problem on?

No response

Describe your issue

When tooltip is placed near right side of the page there is extra space on the right side of tooltip target.
I prefer to fix it by setting tooltip-end for this case.
It works good on desktop - no extra space on the right side of the page.
But it doesn't work on mobile in same way - extra space is still present after setting my fix.

I have checked on Firefox, Chrome, Safari on iOS 26.5
I have not checked on Android - I have no Android

Reproduction steps:

  1. Clone repository
  2. Run run-dev.sh/run-dev.cmd
  3. Navigate http://<you_wi-fi_IP>:5173/ from desktop browser
  4. Scroll right
  5. Wait 2 seconds timeout
  6. See that extra space on the right side is disappeared
  7. Navigate http://<you_wi-fi_IP>:5173/ from your mobile device browser
  8. Scroll right
  9. Wait 2 seconds timeout
  10. See that extra space on the right side is NOT disappeared

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions