react-component / react-component/table

Overflow should be auto instead of scroll?

Open
#367 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
618
Avg merge
10h 19m
Merged PRs (30d)
2

Description

Not sure if this is an issue or intended behaviour.

If I create a table setting scroll X to true I would expect the horizontal scrollbar to appear only if needed (in small screen sizes for example). That's achieved via overflow-x: auto but instead overflow-x: scroll is added making the scrollbar appear at all times even if the table width does not require scrolling.

https://codesandbox.io/s/keen-turing-nq853

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the behavior in the linked CodeSandbox, then trace the table's horizontal overflow styling. Done means the horizontal scrollbar appears only when the table needs horizontal scrolling, including on small screens.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.