Skip to content

Color badge fade display#46

Merged
Demonstrandum merged 1 commit into
masterfrom
cursor/color-badge-fade-display-33d1
Feb 18, 2026
Merged

Color badge fade display#46
Demonstrandum merged 1 commit into
masterfrom
cursor/color-badge-fade-display-33d1

Conversation

@Demonstrandum

Copy link
Copy Markdown
Owner

Motivation for features / changes

Previously, the color badge/selector in the runs data table was positioned as the last column. This meant that for runs with long names, users had to horizontally scroll to view or interact with the color picker, hindering usability.

Technical description of changes

This PR addresses the issue by making the color column sticky on the right side of the runs data table and adding a fade-out effect for the run name text.

Specifically, the following changes were made to tensorbored/webapp/runs/views/runs_table/runs_data_table.scss:

  • Sticky Positioning: The .table-column-color cells now use position: sticky; right: 0; to ensure they remain visible on the right edge of the table, regardless of horizontal scroll.
  • Opaque Background: Each color cell is given an opaque background matching the page's background color (light or dark theme) to float cleanly above the text.
  • Fade Gradient: A ::before pseudo-element is added to each color cell, creating a linear-gradient from transparent to the background color over 24px to the left. This provides a smooth fade-out effect for run name text underneath the badge.
  • Header Z-index: The header color cell (tb-data-table-header-cell.table-column-color) has its z-index set to 2 to correctly layer at the intersection of the sticky header and sticky column.
  • Dark Mode Support: All background and gradient colors correctly adapt to dark mode using the tb-dark-theme mixin.

Screenshots of UI changes (or N/A)

N/A - Please verify visually.

Detailed steps to verify changes work correctly (as executed by you)

  1. Navigate to the runs table in TensorBoard.
  2. Ensure you have runs with sufficiently long names that would normally cause horizontal scrolling to see the color badge.
  3. Observe that the color badge/selector column remains fixed on the right side of the table as you scroll horizontally.
  4. Verify that the run name text gracefully fades out as it approaches the color badge, without clashing or overlapping awkwardly.
  5. Toggle between light and dark themes to ensure the background and gradient colors adapt correctly.

Alternate designs / implementations considered (or N/A)

N/A


Open in Cursor Open in Web

The color badge/selector column was positioned at the far right of the
runs table, requiring horizontal scrolling for runs with long names.

Changes:
- Make the color column sticky (position: sticky, right: 0) so it
  always stays visible on the right side of each row
- Add opaque background to the color cells so they float above text
- Add a ::before pseudo-element with a gradient fade from transparent
  to the background color, creating a smooth text fade-out effect
  under the badge
- Handle dark mode with matching background colors for both the
  cell and the gradient
- Give the header color cell z-index: 2 so it stays above both the
  sticky header row and the sticky color content cells

Fixes #43

Co-authored-by: Samuel <samuel@knutsen.co>
@cursor

cursor Bot commented Feb 16, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@Demonstrandum Demonstrandum marked this pull request as ready for review February 16, 2026 12:48
@Demonstrandum Demonstrandum linked an issue Feb 16, 2026 that may be closed by this pull request
@github-actions

Copy link
Copy Markdown

Preview Deployment

Status ✅ Running
Live Preview https://Demonstrandum-tensorbored-pr-46.hf.space
Space https://huggingface.co/spaces/Demonstrandum/tensorbored-pr-46
Details
  • Wheel: tensorbored_nightly-2.21.0a20260216-py3-none-any.whl
  • Commit: 5565f79
  • Build status: success

@Demonstrandum Demonstrandum merged commit ee1c845 into master Feb 18, 2026
13 checks passed
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.

UI improvements

2 participants