refactor(ui): compose the More menu as one column in named groups

The owner found the menu empty and oddly broken into lines. It had three left edges: the playback device sat inside a padded card, the rows that are buttons began at their own padding, and the help heading had a margin of its own. Its gaps were uneven and the two forms of the room were a select.

- One edge. The device group loses its padding here, and a row that is a button reaches past the edge so that its icon stands on it.
- Groups parted by a rule: appearance (language, theme, the room's form), sound (playback device, feedback sounds), forwarding, then the build and its help.
- The room's form is the shared sliding selection, as the handbook gives a short fixed mode, on one line with its name like the language and theme above it.
- On a phone the header's own buttons give up their words, and what opens from the header keeps them.
This commit is contained in:
AAA committed 2026-11-26 14:04:55 -05:00
1 parent 89cfe52307
commit d5bc3a86a9
5 files changed
+29 -13

No files matched your search

@@ -16,12 +16,15 @@ export function ChannelInterfaceControl({ value, onChange }: {
value: RoomLayout; onChange(value: RoomLayout): void;
}) {
const { t } = useCopy();
return <label className="c3-interface-choice">
<span>{t("channel.interfaceControl.interface")}</span>
<select className="lr-select" value={value} onChange={event => onChange(event.target.value as RoomLayout)}>
{interfaceOptions(t).map(option => <option key={option.value} value={option.value}>{option.label}</option>)}
</select>
</label>;
const labelId = useId();
return <div className="c3-interface-choice">
<span id={labelId}>{t("channel.interfaceControl.interface")}</span>
<div className="lr-toggle" role="group" aria-labelledby={labelId}>
{interfaceOptions(t).map(option => <button key={option.value} type="button" title={option.description}
className={value === option.value ? "is-selected" : undefined} aria-pressed={value === option.value}
onClick={() => onChange(option.value)}><span>{option.label}</span></button>)}
</div>
</div>;
}
/** An optional first-use choice; creation and personal preference stay with the page. */