single game fix

This commit is contained in:
Lett Osprey 2026-04-13 12:17:50 +02:00
parent 09bf741997
commit f3020b7cb0
6 changed files with 195 additions and 128 deletions

View file

@ -51,7 +51,7 @@ fn layout(header: String, ohno: option.Option(String), body: List(Element(Msg)))
fn view_room_list(items: List(Room)) -> Element(Msg) {
layout("Select room to play in", None, case items {
[] -> [html.text("No items in your list yet.")]
[] -> [html.text("No rooms exist, nowhere to play! (ohno!)")]
_ -> {
list.index_map(items, fn(item, index) {
room_cell(index, item, SelectedRoom)
@ -93,7 +93,6 @@ fn view_live_or_single() -> Element(Msg) {
])
}
fn input_cell(
header: String,
password: Bool,
@ -101,7 +100,7 @@ fn input_cell(
) -> Element(Msg) {
html.div([class("participant-login")], [
html.div([class("participant-name")], [
html.text("" <> header),
html.p([], [html.text("" <> header)]),
html.div([], [
html.input([
attribute.type_(case password {