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

Partial fix for overflow-y scroll issue #598

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Jan 15, 2025

When lots of table columns are visible, scrolling to the right looks very ugly and the table cells are hard/impossible to read (see #592).

With this tweak, we match the table backgorund colour when we scroll off, and remove a box shadow which would otherwise cut down along the table.

Before:

Screenshot 2025-01-15 at 14 53 47

After:

Screenshot 2025-01-15 at 14 53 33

This is far from the perfect fix (ideally the header would fill the space etc) but improves the situation at least.

An alternative is to just set overflow-y: auto; on the relevant component, but the downside to this is that, when there are too many rows to fit on one page, you can no longer see the scroll bar that you need to use to scroll the table.

@@ -24,6 +24,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
color: #000;
min-width: 1350px;
position: relative;
background: linear-gradient(0deg, rgba(0,0,0,0.2) 0%, rgb(255, 255, 255) 17%), white;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to keep the gradient that the box-shadow was providing (we remove the box shadow to avoid it cutting through the table when it's too big to fit)

@jsdw jsdw merged commit 6357763 into master Jan 16, 2025
7 checks passed
@jsdw jsdw deleted the jsdw-partial-scrolly-fix branch January 16, 2025 11:01
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

Successfully merging this pull request may close these issues.

2 participants