Skip to content

Fix table column header alignment on reporting grids#811

Merged
StuartFerguson merged 3 commits intomainfrom
copilot/fix-transaction-summary-grid
Mar 10, 2026
Merged

Fix table column header alignment on reporting grids#811
StuartFerguson merged 3 commits intomainfrom
copilot/fix-transaction-summary-grid

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 10, 2026

Numeric column headers were rendering left-aligned while their data cells were right-aligned, causing a visible misalignment on the Transaction Summary by Merchant grid (and the same pattern on Operator and Detail grids).

Root cause: The .table th component rule in app.css applies text-left with specificity [0,1,1] (class + element), which silently wins over a plain text-right utility class at [0,1,0].

Fix: Replace text-right/text-center with Tailwind's !text-right/!text-center (emits !important) on all numeric/action <th> elements across three reporting pages:

<!-- Before -->
<th class="text-right cursor-pointer select-none" @onclick='() => SortBy("TotalCount")'>

<!-- After -->
<th class="!text-right cursor-pointer select-none" @onclick='() => SortBy("TotalCount")'>

Files changed:

  • TransactionSummaryMerchant.razor — Total Count, Total Value, Average Value, Successful, Failed, Success Rate, Actions
  • TransactionSummaryOperator.razor — Transaction Count, Transaction Value, Average Value, Successful, Failed, Success Rate, Actions
  • TransactionDetail.razor — Gross Amount, Fees, Net Amount
Original prompt

This section details on the original issue you should resolve

<issue_title>Transaction Summary By Merchant</issue_title>
<issue_description>- Value alignment is not aligned with the header text

  • apply filters and clear filters buttons not aligned
  • Cant order grid
  • add paging to grid</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix alignment and paging issues in transaction summary by merchant Transaction Summary By Merchant: fix alignment, add column sorting and pagination Mar 10, 2026
Copilot AI changed the title Transaction Summary By Merchant: fix alignment, add column sorting and pagination Fix table column header alignment on reporting grids Mar 10, 2026
@StuartFerguson StuartFerguson marked this pull request as ready for review March 10, 2026 10:03
@StuartFerguson StuartFerguson merged commit c3bdc13 into main Mar 10, 2026
7 checks passed
@StuartFerguson StuartFerguson added the bug Bugs and error-prone code label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugs and error-prone code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transaction Summary By Merchant

2 participants