chadtmiller.com/group-host
atmosphere group host
0
0
The console's header stays on one line on a phone
.changeset/header-one-line.mdnew+7−0
| @@ -0,0 +1,7 @@ | ||
--- | ||
default: patch | ||
--- | ||
| ||
# The console's header stays on one line on a phone | ||
| ||
The site's name and the signed-in account's menu sit side by side at every width. On a narrow screen the handle in the menu is cut short with an ellipsis, rather than the menu dropping to a second line under the name. | ||
web/src/app.css+5−2
| @@ -100,14 +100,17 @@ img { | ||
-webkit-backdrop-filter: saturate(1.4) blur(10px); | ||
border-bottom: var(--border); | ||
} | ||
/* One line at every width: the brand keeps its words, and the menu of | ||
whoever is signed in gives way, its handle cut short with an ellipsis. */ | ||
.top .wrap { | ||
display: flex; | ||
align-items: center; | ||
gap: var(--space-4); | ||
min-height: var(--header); | ||
flex-wrap: wrap; | ||
} | ||
.brand { | ||
flex: none; | ||
white-space: nowrap; | ||
font: var(--weight-bold) var(--text-xl) var(--font-round); | ||
letter-spacing: var(--tracking-tight); | ||
color: var(--fg); | ||
| @@ -126,6 +129,7 @@ img { | ||
do, dropped under it; signing out last. */ | ||
.user-menu { | ||
margin-left: auto; | ||
min-width: 0; | ||
position: relative; | ||
} | ||
.user-menu summary { | ||
| @@ -140,7 +144,6 @@ img { | ||
list-style: none; | ||
font-weight: var(--weight-medium); | ||
font-size: var(--text-sm); | ||
max-width: calc(100vw - 10rem); | ||
} | ||
.user-menu summary::-webkit-details-marker { | ||
display: none; | ||