~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless

git that lives in your Atmosphere account

knotless.dev
1 collaborator

knotless 0.17.0 Latest 2 packages, 1 image

1
10

Keep a diff file's menu beside a long path

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/knotless:web/file-header-menu

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 > summary no longer wraps above the phone breakpoint: the path, min-width: 0 and overflow-wrap: anywhere already, shrinks and wraps inside itself, and the chevron, tag, counts and tools are flex: 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-files with the file's path set to a 120-character one, desktop light and phone dark: on desktop the path wraps over three lines with new, 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.

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.

Merged as 93092a5