-
-
Notifications
You must be signed in to change notification settings - Fork 363
fix(Table): column auto-fit width not working on detail mode #6878
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
Conversation
|
Thanks for your PR, @ljmay168. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideFixed column auto-fit width calculation by iterating the correct table bodies and filtering out detail rows, ensuring accurate width determination when detail rows are enabled. Sequence diagram for auto-fit column width calculation with detail rowssequenceDiagram
participant Table
participant "autoFitColumnWidth()"
participant "Table Body Rows"
participant "Cell"
Table->>"autoFitColumnWidth()": Trigger auto-fit for column
"autoFitColumnWidth()"->>"Table Body Rows": Enumerate rows, filter out .is-detail
"Table Body Rows"->>"Cell": For each row, get cell at column index
"autoFitColumnWidth()"->>"Cell": Calculate cell width
"autoFitColumnWidth()"->>Table: Update column width with max value
Class diagram for updated autoFitColumnWidth logicclassDiagram
class Table {
thead
body
tables
}
class autoFitColumnWidth {
+async (table, col)
}
Table <|-- autoFitColumnWidth
class TableBodyRow {
+classList
+cells
}
autoFitColumnWidth --> TableBodyRow: iterates and filters
TableBodyRow --> Cell: contains cells
class Cell {
+width
}
autoFitColumnWidth --> Cell: calculates width
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6878 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 739 739
Lines 31765 31765
Branches 4466 4466
=========================================
Hits 31765 31765
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0820736
|
@sourcery-ai summary |
|
@sourcery-ai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link issues
fixes #6877
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Fix auto-fit column width when detail row feature is enabled by adjusting row selection logic in Table.razor.js
Bug Fixes: