fix(categories): keep durations readable for long names#843
fix(categories): keep durations readable for long names#843TimeToBuildBob wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #843 +/- ##
=======================================
Coverage 34.38% 34.38%
=======================================
Files 36 36
Lines 2114 2114
Branches 403 386 -17
=======================================
Hits 727 727
- Misses 1308 1366 +58
+ Partials 79 21 -58 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Greptile SummaryThis PR fixes a visual bug in
Confidence Score: 5/5Safe to merge — the change is a self-contained CSS/template layout fix with no logic, data, or behavioral changes. Only the template structure and scoped CSS are touched. The flex layout correctly constrains the label column while pinning the duration column, overflow-wrap: anywhere plus min-width: 0 on the label is a well-established pattern for wrapping flex children, and the existing click/expand logic is untouched. No regressions are introduced. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
ROW["div.px-1.category-row\n(flex row, space-between)"]
ROW --> LABEL["div.category-label\n(flex: 1 1 auto, min-width:0)\npadding-left: 1.4 * depth em"]
ROW --> VALUE["span.category-value\n(flex: 0 0 auto, no-wrap)\nduration / percentage"]
LABEL --> ICON_EXP["span (v-if children > 0)\nexpand/collapse icon"]
LABEL --> ICON_LEAF["span (v-else)\ncircle icon"]
LABEL --> TITLE["span.category-title\n(min-width:0, overflow-wrap:anywhere)\ncat.subname — wraps freely"]
Reviews (1): Last reviewed commit: "fix(categories): keep durations readable..." | Re-trigger Greptile |
|
@0xbrayo CI is green and Greptile came back clean on this one. I tried to self-merge, but this account does not have merge permission on |

Summary
CategoryTreewith a two-column flex rowRoot cause
CategoryTreerendered the category label inline and floated the duration to the right. When a category name got long enough, the float could drop onto the next line and visually mix with the next row.Validation
npm run lint -- src/visualizations/CategoryTree.vuenpm run buildCloses #842.