Skip to content

Table headers for numeric columns are not right-aligned like the row-level cell content. Fixes #755. #756

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

Merged

Conversation

MichaelBurgess
Copy link
Contributor

image

@MichaelBurgess MichaelBurgess requested a review from Copilot April 3, 2025 15:25
Copy link

@Copilot 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 issue where table headers for numeric columns were not right-aligned like the row-level cell content.

  • Adjusted header padding from unilateral left padding ("pl-4") to symmetric horizontal padding ("px-4").
  • Added a conditional CSS class to apply right alignment for numeric columns.
Comments suppressed due to low confidence (1)

ui/dashboard/src/components/dashboards/Table/index.tsx:1033

  • Changing from 'pl-4' to 'px-4' adds symmetric padding, which may result in unintended spacing differences compared to row cells; please verify that this change maintains visual consistency across the table.
"py-3 font-normal tracking-wider whitespace-nowrap px-4",

@MichaelBurgess MichaelBurgess requested a review from cbruno10 April 3, 2025 15:26
@MichaelBurgess MichaelBurgess merged commit 44735ce into develop Apr 3, 2025
3 checks passed
@MichaelBurgess MichaelBurgess deleted the issue-755-dashboard-table-numeric-column-align branch April 3, 2025 15:27
kaidaguerre pushed a commit that referenced this pull request Apr 4, 2025
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