From 5f183147d52a6162e6cd83b8adf2876ff80dcd58 Mon Sep 17 00:00:00 2001 From: Vadim Tokar Date: Tue, 6 Aug 2024 17:38:39 +0400 Subject: [PATCH] fix mobile styles --- .../ShipArrangement.module.scss | 19 +++++++++++++------ .../ship-arrangement/ship-arrangement.tsx | 15 +++++++++++---- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/frontend/apps/battleship-zk/src/features/game/components/ship-arrangement/ShipArrangement.module.scss b/frontend/apps/battleship-zk/src/features/game/components/ship-arrangement/ShipArrangement.module.scss index 6c9568894..a5f2ba3a1 100644 --- a/frontend/apps/battleship-zk/src/features/game/components/ship-arrangement/ShipArrangement.module.scss +++ b/frontend/apps/battleship-zk/src/features/game/components/ship-arrangement/ShipArrangement.module.scss @@ -16,8 +16,8 @@ background: black; z-index: 1; - background: rgb(0,0,0); - background: linear-gradient(90deg, rgba(0,0,0,1) 10%, rgba(0,51,39,1) 50%, rgba(0,0,0,1) 90%); + background: rgb(0, 0, 0); + background: linear-gradient(90deg, rgba(0, 0, 0, 1) 10%, rgba(0, 51, 39, 1) 50%, rgba(0, 0, 0, 1) 90%); } .content { @@ -33,6 +33,9 @@ flex-direction: column; align-items: center; justify-content: center; + border: 2px solid #cfcfcf; + border-radius: 4px; + z-index: 1; } .row { @@ -55,6 +58,9 @@ gap: 15px; padding: 0 16px; + button { + // padding: 12px 10px; + } button, button span { width: 100%; @@ -68,11 +74,12 @@ &::after { position: absolute; z-index: 0; - top: 100%; left: 0; + top: 100%; + left: 0; width: 100%; height: 140px; - background: rgb(0,0,0); - background: linear-gradient(90deg, rgba(0,0,0,1) 10%, rgba(0,51,39,1) 50%, rgba(0,0,0,1) 90%); + background: rgb(0, 0, 0); + background: linear-gradient(90deg, rgba(0, 0, 0, 1) 10%, rgba(0, 51, 39, 1) 50%, rgba(0, 0, 0, 1) 90%); content: ''; } -} \ No newline at end of file +} diff --git a/frontend/apps/battleship-zk/src/features/game/components/ship-arrangement/ship-arrangement.tsx b/frontend/apps/battleship-zk/src/features/game/components/ship-arrangement/ship-arrangement.tsx index 056ca3505..5f233fcc6 100644 --- a/frontend/apps/battleship-zk/src/features/game/components/ship-arrangement/ship-arrangement.tsx +++ b/frontend/apps/battleship-zk/src/features/game/components/ship-arrangement/ship-arrangement.tsx @@ -94,23 +94,30 @@ export default function ShipArrangement({ gameType, savedBoard, makeStartGameTra return (
- Your ships + Your Ships
Click 'Generate' to choose a ship arrangement on the board.
-
+
- -