yyqdbngt opened a new pull request, #3879:
URL: https://github.com/apache/rocketmq-dashboard/pull/3879

   ### Motivation
   
   The `tableScrollX` helper tests covered simple sums and one grouping case, 
leaving nested groups, malformed width strings, hidden groups, empty child 
groups, and explicit zero widths unasserted. This PR grows the suite from 5 to 
11 cases.
   
   ### Changes
   
   - Nested child groups recurse correctly (two levels deep).
   - Child groups whose leaves carry no width each fall back to the 120px share.
   - Pixel strings parse decimal values (`'80.5px'` → 80.5) and `'0px'` → 0; 
non-pixel strings (`'abcpx'`, `'80'`) fall back to the default share.
   - Hidden groups are dropped entirely, contributing 0 even when they have 
sized children.
   - An empty `children` array behaves like an unsized leaf unless the group 
also declares a numeric width.
   - An explicit `width: 0` column contributes nothing but still coexists with 
the selection reservation.
   
   ### Verification
   
   - `vitest run src/utils/table.test.ts`: 11/11 passed
   - `tsc --noEmit`: clean
   - `eslint src/utils/table.test.ts`: clean


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to