diff --git a/werewolves-server/src/lobby.rs b/werewolves-server/src/lobby.rs index 76ee742..eaeaadd 100644 --- a/werewolves-server/src/lobby.rs +++ b/werewolves-server/src/lobby.rs @@ -285,14 +285,12 @@ impl Lobby { }, message: ClientMessage::Goodbye, }) => { - log::error!("we are in there"); if let Some(remove_idx) = self .players_in_lobby .iter() .enumerate() .find_map(|(idx, p)| (p.0.player_id == player_id).then_some(idx)) { - log::error!("removing player {player_id} at idx {remove_idx}"); self.players_in_lobby.swap_remove(remove_idx); self.send_lobby_info_to_host().await?; self.send_lobby_info_to_clients().await; diff --git a/werewolves/index.scss b/werewolves/index.scss index 5380187..7d98efb 100644 --- a/werewolves/index.scss +++ b/werewolves/index.scss @@ -94,10 +94,11 @@ body { app { max-width: 100vw; width: 100vw; + min-height: 100vh; + display: flex; + flex-direction: column; top: 0; left: 0; - display: block; - position: absolute; } .big-screen { @@ -957,18 +958,45 @@ input { } .info-update { + border: 1px solid rgba(255, 255, 255, 0.5); + padding: 30px 0px 30px 0px; font-size: 2rem; align-content: stretch; margin: 0; - position: absolute; - left: 0; + position: fixed; + left: 5vw; z-index: 3; background-color: #000; - min-width: 2cm; + width: 90vw; - & * { + display: flex; + flex-direction: column; + flex-wrap: nowrap; + align-items: center; + gap: 10px; + + &>input { + border: 1px solid rgba(255, 255, 255, 0.25); + background-color: black; + + color: white; + padding: 0; + font-size: 1.5em; + + &:focus { + background-color: white; + color: black; + outline: 1px solid rgba(255, 255, 255, 0.25); + } + } + + &>button { + font-size: 1.1em; + } + + &>* { margin: 0; - width: 100%; + width: 80% !important; text-align: center; } } @@ -2307,7 +2335,7 @@ li.choice { display: flex; flex-direction: row; flex-wrap: nowrap; - overflow: hidden; + margin-top: auto; max-height: 1cm; justify-content: center; background-color: #000; diff --git a/werewolves/src/components/client/footer.rs b/werewolves/src/components/client/footer.rs index 6982aba..b5ed7b1 100644 --- a/werewolves/src/components/client/footer.rs +++ b/werewolves/src/components/client/footer.rs @@ -48,10 +48,10 @@ pub fn ClientFooter() -> Html { }; html! { - + } } diff --git a/werewolves/src/components/client/nav.rs b/werewolves/src/components/client/nav.rs index d9a244f..021f055 100644 --- a/werewolves/src/components/client/nav.rs +++ b/werewolves/src/components/client/nav.rs @@ -102,6 +102,7 @@ pub fn ClientNav( on_submit={on_submit} state={number_open.clone()} on_open={close_others} + label={String::from("number")} >