diff --git a/client/src/menu/lobby/LobbyMenu.tsx b/client/src/menu/lobby/LobbyMenu.tsx index 4a269b6cd..34c99bbbd 100644 --- a/client/src/menu/lobby/LobbyMenu.tsx +++ b/client/src/menu/lobby/LobbyMenu.tsx @@ -42,20 +42,22 @@ export default class LobbyMenu extends React.Component
-
+
-
-
-

{translate("menu.wiki.title")}

-
+ {Anchor.isMobile() ||
+

{translate("menu.wiki.title")}

-
+
}
-
+
{Anchor.isMobile() &&

{translate("menu.lobby.gameSettings")}

} + {Anchor.isMobile() &&
+

{translate("menu.wiki.title")}

+ +
}
@@ -64,31 +66,17 @@ export default class LobbyMenu extends React.Component -
- - - -
-

{GAME_MANAGER.gameState.myName!}

- - } else { - return
- - -

{GAME_MANAGER.gameState.myName!}

- -
- } + return
+ + + {Anchor.isMobile() ||

{GAME_MANAGER.gameState.myName!}

} + + {Anchor.isMobile() &&

{GAME_MANAGER.gameState.myName!}

} +
} function RoomCodeButton(props: {}): JSX.Element { diff --git a/client/src/menu/lobby/LobbyPhaseTimePane.tsx b/client/src/menu/lobby/LobbyPhaseTimePane.tsx index 48d10c847..b2be02583 100644 --- a/client/src/menu/lobby/LobbyPhaseTimePane.tsx +++ b/client/src/menu/lobby/LobbyPhaseTimePane.tsx @@ -141,13 +141,11 @@ export default class LobbyPhaseTimePane extends React.Component<{}, PhaseTimePan } render() {return(
-
-

{translate("menu.lobby.timeSettings")}

-
- {this.renderTimeModeDropdown()} - {this.renderEditButton()} -
-
+

{translate("menu.lobby.timeSettings")}

+
+ {this.renderTimeModeDropdown()} + {this.renderEditButton()} +
{this.state.advancedEditing ? this.renderInputColumn() : null}
)} } diff --git a/client/src/menu/lobby/LobbyPlayerList.tsx b/client/src/menu/lobby/LobbyPlayerList.tsx index adcbe3ec6..412cdf86b 100644 --- a/client/src/menu/lobby/LobbyPlayerList.tsx +++ b/client/src/menu/lobby/LobbyPlayerList.tsx @@ -52,16 +52,15 @@ export default class LobbyPlayerList extends React.Component<{}, PlayerListState )} - renderPlayers(){return(
- {this.state.players.map((player, i)=>{ - return(
- - {player.toString()} - - {/* */} -
) - })} -
)} + renderPlayers() { + return
    + {this.state.players.map((player, i)=>{ + return
  1. + {player.toString()} +
  2. + })} +
+ } render(){return(
{this.renderName()} diff --git a/client/src/menu/lobby/LobbyRolePane.tsx b/client/src/menu/lobby/LobbyRolePane.tsx index cfae2284e..2915303c4 100644 --- a/client/src/menu/lobby/LobbyRolePane.tsx +++ b/client/src/menu/lobby/LobbyRolePane.tsx @@ -48,21 +48,14 @@ export default class LobbyRolePane extends React.Component<{}, RolePaneState> { } render(){return(
-
-

{translate("menu.lobby.roleList")}

-
- {/* TODO, role list presets */} -
-
-
{ - this.state.roleList.map((_, index) => { - return {this.onChangeRolePicker(index, value);}} - key={index} - /> - }) - }
+

{translate("menu.lobby.roleList")}

+ {this.state.roleList.map((_, index) => { + return {this.onChangeRolePicker(index, value);}} + key={index} + /> + })}
)} } diff --git a/client/src/menu/lobby/lobbyMenu.css b/client/src/menu/lobby/lobbyMenu.css index ad4d84198..5b1396e7d 100644 --- a/client/src/menu/lobby/lobbyMenu.css +++ b/client/src/menu/lobby/lobbyMenu.css @@ -1,22 +1,19 @@ .lm { - display: block; - padding: 2%; + display: flex; + flex-direction: column; + padding: 2rem; } .lm > header { display: flex; flex-direction: row; - justify-content: space-between; + justify-content: space-around; + flex-wrap: wrap; + padding-bottom: 1rem; + gap: 0.5rem; } -.lm > header input{ - background: none; - border: none; - width: 0; - padding: 0; - margin: 0; -} .lm > header h1{ font-size: 2rem; display: flex; @@ -24,61 +21,55 @@ justify-content: center; flex-grow: 1; } + .lm > header button{ font-size: 1.5rem; - margin: .5%; - padding: .5%; + padding: .5rem; +} + +.lm > main ol { + list-style: none; } .lm > main { display: flex; flex-direction: row; - justify-content: space-evenly; + flex-wrap: wrap; + column-gap: 2rem; } + @media only screen and (max-width: 600px) { - .lm > main { - flex-direction: column; - } - .lm > header { - flex-direction: column; - } - .lm > header > :first-child { - display: flex; - justify-content: space-between; + .lm > header button { + font-size: 1.2rem; } } + .lm > main > div { - width: 100%; + width: 47%; + flex-grow: 1; } -.lm input { - width: 100%; - margin: .5%; +.lm > main > div > h1 { + padding-bottom: 1rem; } -.lm { - margin-bottom: 4%; +.lm input { + width: 100%; } .lm .name-box { display: flex; flex-direction: row; - margin-top: 2%; - margin-bottom: 2%; + margin-bottom: 1rem; } -.lm > h1 { - font-size: 125%; - width: 100%; - margin-bottom: 2%; -} .lm section { - margin-bottom: 5%; + margin-bottom: 2rem; } + .lm .time-picker { display: flex; - margin-left: 2%; - margin-right: 2%; + align-items: center; } .lm .excluded-roles > div:nth-of-type(1) {