Public: anyone can read this; the crew can change it.

The header clips its last control on a phone: the nav row does not wrap #47

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

hearth/quorum:hearth/40-the-header-clips-its-last-control-on-a-p → main 1 commit fork

  • Merged. hearth/40-the-header-clips-its-last-control-on-a-p was merged into main as 6bd7a36.

Review

Sign in to review this change.
2 files changed +19 −2
src/pages/layout.ts +2 −2
@@ -28,11 +28,11 @@ export function layout(body: string, who: Who, path = "/"): string {
2828 <body>
2929 <div class="page">
3030 <header class="head">
31 <div>
31 <div class="brand">
3232 <h1><a class="plain" href="/">${escape(title)}</a></h1>
3333 <p class="muted">${escape(description)}</p>
3434 </div>
35 <nav class="row">
35 <nav class="row wrap">
3636 <span class="pill" data-env="${escape(env)}">${escape(where)}</span>${commit ? `<span class="muted mono">${escape(commit)}</span>` : ""}
3737 ${door}
3838 </nav>
static/app.css +17
@@ -69,6 +69,9 @@ body {
6969 margin: 0 auto;
7070 padding: var(--s5) var(--s4) var(--s6);
7171 }
72 /* The title and the nav sit side by side where there is room. The title asks
73 for 12rem, so on a phone the pair wraps and the nav gets the whole line to
74 wrap within (`.row.wrap`) rather than running past the edge. */
7275 .head {
7376 display: flex;
7477 flex-wrap: wrap;
@@ -77,6 +80,10 @@ body {
7780 gap: var(--s3) var(--s4);
7881 margin-bottom: var(--s5);
7982 }
83 .brand {
84 flex: 1 1 12rem;
85 overflow-wrap: anywhere;
86 }
8087 h1 {
8188 margin: 0;
8289 font-size: var(--text-xl);
@@ -108,6 +115,16 @@ code,
108115 color: var(--muted);
109116 white-space: nowrap;
110117 }
118 /* A name is one unbreakable run, so it gets a ceiling of its own: a long one
119 ends in an ellipsis instead of pushing the sign-out button off the line.
120 The role after it stays readable. */
121 .you b {
122 display: inline-block;
123 max-width: 8rem;
124 overflow: hidden;
125 text-overflow: ellipsis;
126 vertical-align: bottom;
127 }
111128
112129 /* Blocks. */
113130 .card {

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs