feat!: display room name

BREAKING CHANGE: protocol now expects room name attribute
This commit is contained in:
efim
2023-04-30 09:55:49 +04:00
parent e2795edbe6
commit db65777780
3 changed files with 83 additions and 76 deletions

View File

@@ -35,7 +35,11 @@ object RoomView {
val wsFinalDeathSignal = wsStream.closed.collect { case (_, false) => () }
div(
className := "w-full h-full border-4 border-amber-900 flex flex-col",
className := "w-full h-full border-4 border-amber-900 flex flex-col relative",
div(
className := "absolute top-2 right-2",
child.text <-- roomStateSignal.map(st => s"Room name: '${st.roomName}'"),
),
OtherPlayers.render(roomStateSignal),
TableView.renderTable(roomStateSignal),
OwnHandControls.render(roomStateSignal),