From 9b69910cb838021cc396c42a0c7b6642f029aa64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?gr=C3=A9goire=20parant?= Date: Tue, 27 Apr 2021 23:58:33 +0200 Subject: [PATCH] WIP: Update style for mobile (#942) * Update style for mobile - Update style for mobile modale * Fix overscroll * Change css properties overflow * Revert "Change css properties overflow" This reverts commit 612fcc7e007fb03c7f72e5fa4b8a0604a184ae7d. * rm image * Update view mobile * Fix CI --- .../resources/html/CustomCharacterScene.html | 9 ++++--- .../resources/html/EnableCameraScene.html | 12 ++++++--- .../resources/html/SelectCompanionScene.html | 10 +++++-- .../resources/html/helpCameraSettings.html | 10 +++++-- front/dist/resources/html/loginScene.html | 8 +++++- ...erScene.html => selectCharacterScene.html} | 8 +++--- front/src/Phaser/Login/CustomizeScene.ts | 7 ++--- front/src/Phaser/Login/EnableCameraScene.ts | 6 ++--- front/src/Phaser/Login/LoginScene.ts | 9 ++++--- .../src/Phaser/Login/SelectCompanionScene.ts | 7 ++--- .../Phaser/Menu/HelpCameraSettingsScene.ts | 5 ++-- maps/Tuto/tutoV3.json | 26 +++++++++---------- 12 files changed, 74 insertions(+), 43 deletions(-) rename front/dist/resources/html/{SelectCharacterScene.html => selectCharacterScene.html} (97%) diff --git a/front/dist/resources/html/CustomCharacterScene.html b/front/dist/resources/html/CustomCharacterScene.html index 1c806a6f..0bc050ea 100644 --- a/front/dist/resources/html/CustomCharacterScene.html +++ b/front/dist/resources/html/CustomCharacterScene.html @@ -8,11 +8,11 @@ border-radius: 6px; margin: 10px auto 0; color: #ebeeee; - overflow: scroll; width: 42vw; - height: 38vh; - /*max-width: 300px;*/ - max-height: 40vh; + height: 48vh; + /*max-width: 300px; + max-height: 48vh;*/ + overflow: hidden; } #customizeScene h1 { background-image: linear-gradient(top, #f1f3f3, #d4dae0); @@ -130,6 +130,7 @@ @media only screen and (max-width: 600px) { #customizeScene { max-width: 160px; + overflow-y: scroll; } } @media only screen and (max-height: 400px) { diff --git a/front/dist/resources/html/EnableCameraScene.html b/front/dist/resources/html/EnableCameraScene.html index 6f22dd31..0763d7dd 100644 --- a/front/dist/resources/html/EnableCameraScene.html +++ b/front/dist/resources/html/EnableCameraScene.html @@ -8,10 +8,10 @@ border-radius: 6px; margin: 20px auto 0; color: #ebeeee; - max-height: 40vh; + max-height: 48vh; width: 42vw; max-width: 300px; - /*overflow: scroll;*/ + overflow: hidden; } #enableCameraScene h1 { background-image: linear-gradient(top, #f1f3f3, #d4dae0); @@ -48,7 +48,7 @@ text-align: center; margin: 0; position: absolute; - top: 40vh; + top: 44vh; width: 100%; } #enableCameraScene button { @@ -97,6 +97,12 @@ width: 160px; margin: 20px 0; } + /*@media only screen and (max-width: 800px), + only screen and (max-height: 600px) { + #enableCameraScene{ + overflow-y: scroll; + } + }*/ diff --git a/front/dist/resources/html/helpCameraSettings.html b/front/dist/resources/html/helpCameraSettings.html index 557c6eff..64740406 100644 --- a/front/dist/resources/html/helpCameraSettings.html +++ b/front/dist/resources/html/helpCameraSettings.html @@ -8,9 +8,9 @@ border-radius: 6px; margin: 25px auto 0; width: 400px; - max-height: calc(50vh - 25px); - overflow: scroll; + max-height: calc(48vh - 50px); max-width: 48vw; + overflow: hidden; } #helpCameraSettings h1 { background-image: linear-gradient(top, #f1f3f3, #d4dae0); @@ -73,6 +73,12 @@ width: 200px; margin-top: 10px; } + @media only screen and (max-width: 800px), + only screen and (max-height: 600px) { + #helpCameraSettings{ + overflow-y: scroll; + } + }