File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -414,6 +414,17 @@ def mark(key):
414414button.copy:hover{border-color:var(--accent);color:var(--accent)}
415415button.copy.ok{color:var(--ok);border-color:var(--ok);background:transparent}
416416button.copy.term{font-size:.95rem}
417+ /* A copy button with a WORDED face is a chip, not an icon. The rule above is
418+ a fixed 2.6rem square — right for a bare clipboard glyph, a trap for a
419+ label: the text wraps inside 42px into a one-word-per-line column and
420+ spills out of its own box (observed on the health board's "clear them all"
421+ line). Size to the label instead, and hold it on one line the way `.pill`
422+ does — a chip that will not fit is elided, never allowed to push the page
423+ sideways. `vertical-align:bottom` because `overflow:hidden` moves an
424+ inline-block's baseline to its bottom edge. */
425+ button.copy.text{width:auto;height:auto;max-width:100%%;padding:.34rem .62rem;
426+ font-size:.85rem;font-weight:600;white-space:nowrap;overflow:hidden;
427+ text-overflow:ellipsis;vertical-align:bottom}
417428button.more{display:block;width:100%%;margin:.7rem 0;padding:.55rem;
418429 border:1px dashed var(--edge);border-radius:9px;background:transparent;
419430 color:var(--muted);cursor:pointer;font:inherit;font-size:.9em}
You can’t perform that action at this time.
0 commit comments