themesberg / themesberg/flowbite

Popover and Tooltip cause overflow (white space in page) when window resize

Open
#854 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Extra white space in the right side of page due to popover after window resize

To Reproduce
Steps to reproduce the behavior:
Create a popover close to the right side of the page, and then resize the window (make it smaller in width)

You will see white space in the right side of page due to the transform property of the popover.

Expected behavior
I think if the popover is hidden, the "transform" property should be removed in order to resolve the issue.

The tooltip component is also affected when positioned near border sides.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 123.0.6312.106 (Official Build) (64-bit)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the resize case with a popover and tooltip positioned near a page edge, then inspect the corresponding component entry points for the transform behavior. Done means resizing no longer leaves horizontal white space and edge-positioned popovers and tooltips remain correctly positioned.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, tailwindcss
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.