From 4c3097155b8fbf6b12f3bc47da5a514f919b5f29 Mon Sep 17 00:00:00 2001 From: GRL Date: Wed, 18 Aug 2021 11:15:46 +0200 Subject: [PATCH] Second pass on css and reportMenu --- .../Components/Menu/AboutRoomSubMenu.svelte | 30 ++++++++++++-- .../Components/Menu/CreateMapSubMenu.svelte | 23 ++++------- .../src/Components/Menu/CustomSubMenu.svelte | 13 ------ .../Menu/GlobalMessagesSubMenu.svelte | 15 ++++++- front/src/Components/Menu/Menu.svelte | 16 ++++---- .../src/Components/Menu/ProfileSubMenu.svelte | 13 +++--- .../Components/Menu/SettingsSubMenu.svelte | 17 ++++---- .../Components/Menu/TextGlobalMessage.svelte | 3 +- .../Components/ReportMenu/ReportMenu.svelte | 40 ++++++++++++++----- .../ReportMenu/ReportSubMenu.svelte | 9 +++-- .../style/TextGlobalMessageSvelte-Style.scss | 10 +++++ 11 files changed, 116 insertions(+), 73 deletions(-) delete mode 100644 front/src/Components/Menu/CustomSubMenu.svelte diff --git a/front/src/Components/Menu/AboutRoomSubMenu.svelte b/front/src/Components/Menu/AboutRoomSubMenu.svelte index 7749abd7..9637e9ce 100644 --- a/front/src/Components/Menu/AboutRoomSubMenu.svelte +++ b/front/src/Components/Menu/AboutRoomSubMenu.svelte @@ -43,15 +43,29 @@ HTMLShareLink.select(); document.execCommand('copy'); } + + async function shareLink() { + const shareData = {url: location.toString()}; + + try { + await navigator.share(shareData); + } catch (err) { + console.error('Error: ' + err); + } + }
-
@@ -97,7 +96,7 @@ pointer-events: auto; height: 80vh; width: 75vw; - top: 10vh; + top: clamp(55px, 10vh, 10vh); position: relative; margin: auto; @@ -129,8 +128,7 @@ @media only screen and (max-height: 900px) { div.menu-container-main { - top: 5vh; - height: 85vh; + bottom: 55px; width: 100vw; font-size: 0.5em; } diff --git a/front/src/Components/Menu/ProfileSubMenu.svelte b/front/src/Components/Menu/ProfileSubMenu.svelte index bb49d45e..e2a3a05a 100644 --- a/front/src/Components/Menu/ProfileSubMenu.svelte +++ b/front/src/Components/Menu/ProfileSubMenu.svelte @@ -33,9 +33,10 @@ gameManager.leaveGame(SelectCharacterSceneName,new SelectCharacterScene()); } - function clickLogin() { + //TODO: Uncomment when login will be completely developed + /*function clickLogin() { connectionManager.loadOpenIDScreen(); - } + }*/ @@ -49,20 +50,18 @@
-
+ \ No newline at end of file diff --git a/front/src/Components/ReportMenu/ReportSubMenu.svelte b/front/src/Components/ReportMenu/ReportSubMenu.svelte index e9b63ea4..40a2cb1a 100644 --- a/front/src/Components/ReportMenu/ReportSubMenu.svelte +++ b/front/src/Components/ReportMenu/ReportSubMenu.svelte @@ -1,7 +1,8 @@ @@ -38,7 +39,7 @@ text-align: center; textarea { - height: 200px; + height: clamp(100px, 20vh, 20vh); } } \ No newline at end of file diff --git a/front/style/TextGlobalMessageSvelte-Style.scss b/front/style/TextGlobalMessageSvelte-Style.scss index d09c94ad..dce20378 100644 --- a/front/style/TextGlobalMessageSvelte-Style.scss +++ b/front/style/TextGlobalMessageSvelte-Style.scss @@ -29,3 +29,13 @@ section.section-input-send-text { } } } + +@media only screen and (max-height: 900px) { + section.section-input-send-text { + --height-toolbar: 30%; + + .ql-toolbar { + overflow: auto; + } + } +}