~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The console reads well on a phone

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:console/phone

What changes

Every page and the main dialogs were drawn on a phone with just look (empty, full and long seeds; light and dark), and what read badly is fixed, mostly in the shared rules of app.css, so every page that shows the same thing gets it. The patterns are knotless's.

Tabs stay one row. A page's tabs (a group's settings, the moderation queue) scrolled nowhere and wrapped "Recovery keys" onto a line of its own. They are now one row that scrolls sideways where it is wider than the screen, the one shown brought into view and the row faded at an edge with more past it (scrollRow, #lib/rows.ts).

Tall dialogs scroll. A dialog taller than the screen ("Create a role") ran past its foot, its buttons out of reach. It now stops short of the screen's foot and scrolls within itself; on a phone it opens nearer the top. Its close button sat lower than its title, pushed down by the gap between a dialog's parts; it is now centred on the title's first line.

Rows keep their acts beside them while the name fits. A row's name and words now give way to its acts only once its longest word would not fit beside them, so short handles keep Roles and Remove on their own line, as Revoke and Delete rows already did, and a long handle goes whole onto its line with its acts under it ("maximilianaquinces.↵test" was broken beside Cancel invite). A row's picture and acts sit by its first line on a phone, not at its middle. What someone asking to join said goes under their row, as wide as it, lined up with their handle, rather than squeezed beside the buttons.

Less of the same down a list. A group's members each carried the same Roles and Remove buttons, under each handle on a phone. They are now in a "⋯" menu at the row's end (ActionMenu, as knotless's): "Change roles", "Remove from the group", each opening the dialog it did. A member's row is their picture, handle and roles, on one line where they fit. The ui skill says when a list does this. The pictures' buttons say their verb alone ("Change", "Remove", "Add") beside the row's "Avatar" or "Banner", their aria-label in full, and "Shown on its page", the same under both, is gone; a banner's thumbnail is narrower on a phone so its buttons stay beside it.

Long text breaks where it should. A web address breaks after a / or . (Address.svelte), not inside a word, and a link's title no longer runs into its Remove button. A day or a time never breaks inside itself ("6 Nov ↵ 2026"). A long group's name in the back link is cut short with an ellipsis rather than taking two lines over the heading. A long group name sits beside its picture from the top. Paragraphs avoid a lone last word (text-wrap: pretty).

A shorter way to say how people join. "People ask to join, and an admin approves them" was cut off in its select on a phone; it is "An admin approves who joins", beside "Anyone can join right away" and "Only people who are invited".

The phone's page starts a little nearer the header, its parts a little closer together.

Why

Asked for: go through the console on a phone with the look suite and fix wrapping, nav and anything hidden, after knotless's patterns.

How it was checked

Every page (home, start a group, move, a group's page as admin, member, asker and outsider, moderation, each settings tab) drawn on a phone before and after with the full, waiting, apps and long seeds, light and dark, and the dialogs open; the desktop drawn again for regressions. A fresh critique of the phone pictures found the dialog's close button, the squeezed note, the broken addresses and dates and the back link, all fixed here. svelte-check, the layers, the dialogs and oxfmt pass here; the e2e is CI's.

Shortcomings

The settings tabs, scrolled, show a part of the next tab faded at the edge; that is how the row says there is more. The small avatars' initials are low in contrast in the dark, as before.

🤖 Generated with Claude Code

g-lanterns-groups-test-settings-recovery-alice-phone-light.png

g-lanterns-groups-test-settings-recovery-alice-phone-light.png

d-role-alice-phone-light.png

d-role-alice-phone-light.png

g-lanterns-groups-test-alice-phone-light.png

g-lanterns-groups-test-alice-phone-light.png

open-alice-phone-dark.png

pictures-alice-phone-light.png

pictures-none-dan-phone-dark.png

new-alice-phone-light.png

new-alice-phone-light.png

Asked for changes

This pull makes the console read better on a phone, mostly through shared rules in app.css. It adds a scrolling tab row (scrollRow), scrolling dialogs, an Address atom that breaks after / and ., non-breaking dates, and a shorter join-policy label. The code looks sound, and the layering and token use fit AGENTS.md. I found one thing to fix. I read the diff and the surrounding list rules in app.css. I did not run the pull or open its pictures.

The new .note rule doesn't put the note on its own line. The row li is display: flex; flex-wrap: wrap, and .note sets no flex-basis or width. Wrapping depends on each item's hypothetical size, and .row-main now has flex: 1 1 0 with a min-content minimum. A short note, such as "hi, please let me in", can therefore fit on the same line as the avatar, handle and buttons. It would sit beside the buttons, indented by padding-left, which is the squeeze the pull set out to remove. Only a long note wraps below. Give it flex: 0 0 100%, with box-sizing: border-box so the padding counts inside the 100%. The base rules probably already set border-box, but I didn't check.

web/src/app.cssline 1120Outdated

These lines can no longer be read.

review.knotless.dev

Add flex: 0 0 100% here (with border-box sizing) so the note always takes its own line under the row. As written, a short note can share the line with the row's buttons.

The note is a p, and the list rules already give a row's p flex-basis: 100% (:is(ul, ol)[class] > li > p), so a short note did take its own line. The .note rule now says flex: 0 0 100% itself so it does not lean on that; box-sizing: border-box is set for everything at the top of app.css. (Two commits in between briefly carried unrelated work in progress and took it out again; the pull's diff is only the phone changes.)

Approved

The earlier request is done. .note now has flex: 0 0 100%, so it takes its own line under the row. app.css sets box-sizing: border-box at line 11, so the padding-left counts inside the 100% and nothing overflows. I read only the app.css diff this round and did not run the pull or open its pictures. I found nothing else to change.

Approved

The earlier round's request is done, so I'm approving. This round adds one commit, which moves a member's Roles and Remove acts into a new "⋯" ActionMenu. It also shortens the Pictures buttons to their verb, with the full text kept in aria-label.

I read the whole diff of that commit. I found nothing that needs changing:

  • The menu reuses the existing .menu styles.
  • It closes on a pick, on an outside click and on Escape.
  • It renders nothing when there are no actions.
  • flows.spec.mjs is updated to the new labels, and SKILL.md documents the pattern.

I did not run the pull or open its pictures. One thing I couldn't check by reading: each menu button closes its <details> while it opens a dialog through popovertarget. The updated e2e flow covers that, so CI will show whether the dialog still opens.

Merged as 1d1e211