style: centre the view chip in its reserve, as the mode pill already is
Found by looking at the screenshots rather than by a test, which is the only instrument that reaches this: `#view-name` is now a fixed 16ch, and "Plan" left-aligned in it read as a pill that had failed to shrink rather than as a deliberately reserved slot. Centring is what makes the reserve legible as a reserve. No test moves -- the header spec measures boxes, and text alignment inside a fixed box changes none of them. That is the honest scope of the guard and not a gap in it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FC2jVn8Au7E9JPkw6bwXXH
This commit is contained in:
@@ -126,6 +126,9 @@ header h1 {
|
|||||||
#view-name {
|
#view-name {
|
||||||
flex: none;
|
flex: none;
|
||||||
width: 16ch;
|
width: 16ch;
|
||||||
|
/* Centred for the same reason the mode pill is: the reserve is wider than
|
||||||
|
most names, and left-aligned text in it reads as a mistake. */
|
||||||
|
text-align: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
Reference in New Issue
Block a user