From f2a52409978f45a91dd0a57f780a1982e077f83d Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 21 Feb 2021 12:52:11 +0100 Subject: Cleanup padding in GameBrowser and Lobby --- .../org/luxons/sevenwonders/ui/components/gameBrowser/GameBrowser.kt | 2 +- .../main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sw-ui') diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/gameBrowser/GameBrowser.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/gameBrowser/GameBrowser.kt index 2f1d3d16..479c7ea0 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/gameBrowser/GameBrowser.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/gameBrowser/GameBrowser.kt @@ -16,6 +16,7 @@ fun RBuilder.gameBrowser() = styledDiv { css { +GlobalStyles.fullscreen +GlobalStyles.zeusBackground + padding(all = 1.rem) } styledDiv { attrs { @@ -23,7 +24,6 @@ fun RBuilder.gameBrowser() = styledDiv { } css { margin(horizontal = LinearDimension.auto) - padding(all = 1.rem) maxWidth = 60.rem } styledDiv { diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt index f7dd0b2a..4d38b081 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt @@ -49,9 +49,9 @@ class LobbyPresenter(props: LobbyProps) : RComponent(props) } styledDiv { css { - padding(1.rem) +GlobalStyles.fullscreen +GlobalStyles.papyrusBackground + padding(all = 1.rem) } h2 { +"${currentGame.name} — Lobby" } radialPlayerList(currentGame.players, currentPlayer) -- cgit