Skip to content

table view: fix sorting button position#1561

Merged
lyubov-voloshko merged 1 commit intomainfrom
fixes
Feb 4, 2026
Merged

table view: fix sorting button position#1561
lyubov-voloshko merged 1 commit intomainfrom
fixes

Conversation

@lyubov-voloshko
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 4, 2026 16:30
@lyubov-voloshko lyubov-voloshko merged commit 2afe37c into main Feb 4, 2026
19 checks passed
@lyubov-voloshko lyubov-voloshko deleted the fixes branch February 4, 2026 16:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the positioning of sorting buttons in the table view header. The change moves the sort button from a flex item to an absolutely positioned element, allowing it to stay at a fixed position on the right side of the header cell.

Changes:

  • Removed commented-out CSS code for alternating row colors
  • Changed button positioning from flex layout to absolute positioning
  • Added background colors for light and dark color schemes to prevent text bleed-through

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 494 to 499
.sortable-header__text {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The sortable-header__text element needs padding-right to prevent text from extending underneath the absolutely positioned button. When the button appears (on hover or when the column is active), it will overlap with the text. Consider adding padding-right equal to the button width plus desired spacing (e.g., 28px for 24px button + 4px gap).

Copilot uses AI. Check for mistakes.
Comment on lines 509 to +522
}

@media (prefers-color-scheme: light) {
.sortable-header__button {
background: rgba(255, 255, 255, 1);
}
}

@media (prefers-color-scheme: dark) {
.sortable-header__button {
background: rgba(32, 32, 32, 1);
}
}

Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The hardcoded background colors (white and dark gray) may not match the actual table header background, especially if custom Material theming is applied. Consider using CSS custom properties or ensuring these values align with the Material theme's surface colors. The background color is needed to prevent text from showing through the absolutely positioned button, but it should match the header cell background exactly.

Suggested change
}
@media (prefers-color-scheme: light) {
.sortable-header__button {
background: rgba(255, 255, 255, 1);
}
}
@media (prefers-color-scheme: dark) {
.sortable-header__button {
background: rgba(32, 32, 32, 1);
}
}
background-color: var(--db-table-header-background, inherit);
}

Copilot uses AI. Check for mistakes.
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.

1 participant