Fit long Files breadcrumb labels to the panel

Each folder in the path gets a maximum width (the current folder the
whole row) and its label is shortened in the middle to what actually
fits, measured with the label's style, so a long name never pushes the
current folder out of a narrow panel.
This commit is contained in:
2026-11-12 23:13:08 +00:00
parent 6ce67dc491
commit a440859108
3 changed files with 150 additions and 23 deletions
+4 -3
View File
@@ -12,6 +12,7 @@ phone and desktop Material layouts and does not depend on theme brightness.
Focused regression: `files_panel_test.dart` verifies the deep leaf remains
fully visible at the trailing edge, deeper navigation pins the new leaf,
middle-ellipsizes long labels, and tapping an earlier segment requests that
folder. `tool/memwatch/full.sh 'test/features/chat/files/files_panel_test.dart'`
passes (17 tests); `tool/analyze.sh` is clean. The capture fixture now starts at
a deep path and includes a long folder entry for rendered review.
folder. `tool/memwatch/full.sh 'test/features/chat/files/files_panel_test.dart test/features/chat/files/files_controller_persistence_test.dart'` passes (21 tests); `tool/analyze.sh` is clean. The capture fixture now starts at a deep
path and includes a long folder entry for rendered review. The fixture also
retains the remembered-folder missing-path switch from the concurrent Files
folder persistence change.