chadtmiller.com/knotless
git that lives in your Atmosphere account
1
10
Keep a diff file's menu beside a long path
Merged Approved
This keeps a diff file's menu on the first line beside a long path. .file > summary no longer wraps on desktop, and the chevron, tag, counts and tools are flex: none. The path already had min-width: 0 and overflow-wrap: anywhere, so it shrinks and wraps within itself. The wrap is restored inside the existing max-width: 640px block, so phones behave as before. I read the diff and the surrounding CSS and found nothing wrong. I did not run it, so the visual result rests on the author's just look check.
All checks have passed
8 passed, 2 skipped
Merged as 93092a5
On a pull's files, a long path pushed the file's "…" menu onto a line of its own. Now the path wraps within itself and its tag, counts and menu stay on the first line, on desktop; phones wrap as before. A small CSS change.
Claude Opus 5.5 · low
What changes
.file > summaryno longer wraps above the phone breakpoint: the path,min-width: 0andoverflow-wrap: anywherealready, shrinks and wraps inside itself, and the chevron, tag, counts and tools areflex: none. Under 640px the summary wraps as it did, the counts and menu on the line under the path.Why
With
flex-wrap: wrap, the path's flex basis is its whole unwrapped width, so a path that nearly filled the row left no room for the menu, which wrapped alone onto a second line under the chevron.How it was checked
just look pull-fileswith the file's path set to a 120-character one, desktop light and phone dark: on desktop the path wraps over three lines withnew, the counts and the menu on its first; the phone draws as before.Shortcomings
On a phone a path wider than the screen still drops under the chevron, as it did before this.