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

Add zebra striping to rows in tables #17719

Open
click0 opened this issue Oct 10, 2024 · 5 comments
Open

Add zebra striping to rows in tables #17719

click0 opened this issue Oct 10, 2024 · 5 comments
Labels
netbox status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application

Comments

@click0
Copy link

click0 commented Oct 10, 2024

NetBox version

4.1.3

Feature type

Change to existing functionality

Triage priority

N/A

Proposed functionality

Add zebra striping to rows in tables.
Add 5-10% difference in background colors between rows.

Use case

In wide tables with a large number of columns, you can position yourself faster and read the desired line across the entire width.

Database changes

No response

External dependencies

No response

@click0 click0 added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Oct 10, 2024
@arthanson
Copy link
Collaborator

This is a simple change to add table-striped to netbox/tables/tables.py in BaseTable Meta attrs:

    class Meta:
        attrs = {
            'class': 'table table-hover table-striped object-list',
        }

Here are screenshots for what it looks like:
Devices | NetBox 2024-10-10 13-34-52
Devices | NetBox 2024-10-10 13-35-11

@click0
Copy link
Author

click0 commented Oct 10, 2024

Yes, that's much better.
Please add this change to the new version of Netbox.

@PieterL75
Copy link
Contributor

PieterL75 commented Oct 22, 2024

I rather like a highlight when hovering over a row, rather than these striping and a small line between the rows... just as it is now
Stripes are just too much

@ITJamie
Copy link
Contributor

ITJamie commented Oct 22, 2024

I find the striping is much more readable

@jeremystretch
Copy link
Member

FWIW we can also combine the stripe and hover effects. But yes, it is subjective. This might be one of those rare instances where I actually support introducing a user preference.

@jeremystretch jeremystretch added status: under review Further discussion is needed to determine this issue's scope and/or implementation and removed status: needs triage This issue is awaiting triage by a maintainer labels Oct 23, 2024
@jeremystretch jeremystretch added the netbox label Nov 1, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
netbox status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

5 participants