fix(projects): stop stranding the worktree path across the card

margin-left:auto was correct for the old single-line row, where it pushed the
path to the far right of a flex row. The two-line card stacks branch over path
in a column, so the same declaration shoved the path to the opposite edge from
the branch it labels. Removed, with a note saying why it must not come back.

Same shape as the .proj-wt-row duplicate earlier in this series: an element
reused in a new layout kept a positioning declaration that only made sense in
the old one. Caught by screenshot; the DOM assertions could not see it.
This commit is contained in:
Yaojia Wang
2026-07-29 18:43:05 +02:00
parent 2066631c0a
commit 609e7cea69

View File

@@ -2473,7 +2473,9 @@ body {
color: var(--on-accent); color: var(--on-accent);
} }
.proj-wt-path { .proj-wt-path {
margin-left: auto; /* No margin-left:auto — that was for the old single-line row, where it pushed
the path to the far right. Inside the two-line card it sits directly under
the branch it belongs to, so auto margin would strand it across the card. */
font-family: Menlo, Consolas, monospace; font-family: Menlo, Consolas, monospace;
font-size: 11px; font-size: 11px;
color: var(--text-faint); color: var(--text-faint);