Skip to content

Commit 47005d4

Browse files
authored
Merge pull request #303 from PyAutoLabs/claude/mobile-scroll-dashboard-inconsistency-7xoqnu
dashboard: pick up the bounded pill
2 parents 98ff080 + 1cbb854 commit 47005d4

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

dashboard.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,17 @@
9797
/* --- facet pills: the backlog, scannable by colour --------------------- */
9898
.facets{color:var(--muted);font-size:.85em}
9999
.tags{display:block;margin-top:.32rem;line-height:1.9}
100-
.pill{display:inline-block;padding:.06em .5em;border-radius:999px;
100+
/* A pill is a LABEL, and a label that will not fit is elided, never allowed
101+
to push the page sideways. `nowrap` is what makes a chip read as a chip, so
102+
it is also the one thing the page-wide wrap guard above cannot reach: an
103+
over-long value (a board handing a whole log sentence to a facet) used to
104+
run a chip a thousand pixels wide. The row's prose carries the meaning; the
105+
chip carries the word. `vertical-align:bottom` because `overflow:hidden`
106+
moves an inline-block's baseline to its bottom edge. */
107+
.pill{display:inline-block;max-width:100%;padding:.06em .5em;border-radius:999px;
101108
font-size:.74em;font-weight:650;letter-spacing:.015em;white-space:nowrap;
102-
vertical-align:.09em;border:1px solid var(--edge);background:var(--tint);
109+
overflow:hidden;text-overflow:ellipsis;
110+
vertical-align:bottom;border:1px solid var(--edge);background:var(--tint);
103111
color:var(--accent)}
104112
.pill+.pill{margin-left:.28rem}
105113
.pill.n{border-color:var(--line);background:var(--btn);color:var(--muted)}

0 commit comments

Comments
 (0)