[Bug] The `Select` component displays an unexpected horizontal scrollbar

3
closed
Looky1173
Looky1173
Posted 4 months ago

[Bug] The `Select` component displays an unexpected horizontal scrollbar #613

Bug report 🐞

Version & Environment

  • Google Chrome v92.0.4515.159
  • geist-ui/react v2.2.0

Expected Behaviour

When toggled, the Select component displays according to the width and height of its options.

Actual results

The Select component always has a horizontal scrollbar, like so:

image image

sayna3311
sayna3311
Created 4 months ago

I would like to work on this.

unix
unix
Created 4 months ago

@sayna3311 Thanks, welcome PRs. I guess the error may be related to this line: dropdown.tsx#L62. With the addition of overflow-y: auto;, the horizontal orientation (overflow-x) of the div has also become automatic.

sayna3311
sayna3311
Created 4 months ago

Yes, I see. Changing that can make it work accordingly. Would you assign me this?