diff --git a/src/client/components/living/Comic.tsx b/src/client/components/living/Comic.tsx index eaebf71c7..29e5a4f14 100644 --- a/src/client/components/living/Comic.tsx +++ b/src/client/components/living/Comic.tsx @@ -198,10 +198,9 @@ export function Moon({ k?: number; }) { return ( - + @@ -471,11 +470,7 @@ ${rmBlock( - + diff --git a/src/client/components/living/Couch.tsx b/src/client/components/living/Couch.tsx index 964d14dd5..6d4e54d11 100644 --- a/src/client/components/living/Couch.tsx +++ b/src/client/components/living/Couch.tsx @@ -1,5 +1,5 @@ // The couch: the roster as pawns watching the TV. Joining pawns hop in, -// self carries the green pointer, the host wears a crown (topology only). +// self carries the green pointer, and the host wears a crown. import { Glyph } from "../../ui/icons"; import { useCopy } from "../../ui/copy"; import { participantColor } from "./participant-color"; @@ -30,19 +30,30 @@ export interface CouchEntry { selectable?: boolean; } +export interface CouchHostEntry { + key: string; + name: string; + you?: boolean; + selected?: boolean; + controls?: string; + onSelect?: () => void; +} + export function Couch({ + host, entries, selectedKey, onSelect, emptyHint, }: { + host?: CouchHostEntry | null; entries: CouchEntry[]; selectedKey?: string | null; onSelect?: (key: string) => void; emptyHint?: string; }) { const { vis, t } = useCopy(); - const crowded = entries.length > 10; + const crowded = entries.length + (host ? 1 : 0) > 10; return (
@@ -59,8 +70,37 @@ export function Couch({
+ {host + ? host.onSelect + ? ( +