From e5979998c5348cc7e124607eb11690e2b2bec635 Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Tue, 16 Nov 2021 15:28:54 +0100 Subject: [PATCH] Update design of credit page Signed-off-by: Gregoire Parant --- .../Components/Menu/AboutRoomSubMenu.svelte | 59 +------------------ front/src/Components/Menu/GuestSubMenu.svelte | 6 +- 2 files changed, 3 insertions(+), 62 deletions(-) diff --git a/front/src/Components/Menu/AboutRoomSubMenu.svelte b/front/src/Components/Menu/AboutRoomSubMenu.svelte index 2a546a14..6c10cc76 100644 --- a/front/src/Components/Menu/AboutRoomSubMenu.svelte +++ b/front/src/Components/Menu/AboutRoomSubMenu.svelte @@ -4,7 +4,6 @@ let gameScene = gameManager.getCurrentGameScene(); - let HTMLShareLink: HTMLInputElement; let expandedMapCopyright = false; let expandedTilesetCopyright = false; @@ -38,37 +37,9 @@ } } }) - - function copyLink() { - const input: HTMLInputElement = document.getElementById('input-share-link') as HTMLInputElement; - input.focus(); - input.select(); - document.execCommand('copy'); - } - - async function shareLink() { - const shareData = {url: location.toString()}; - - try { - await navigator.share(shareData); - } catch (err) { - console.error('Error: ' + err); - copyLink(); - } - }
- -
-

Share the link of the room !

- - -

Information on the map

{mapName}

@@ -95,24 +66,6 @@ div.about-room-main { height: calc(100% - 56px); - section.share-url { - text-align: center; - margin-bottom: 20px; - - input { - width: 85%; - border-radius: 32px; - padding: 3px; - } - input::selection { - background-color: #209cee; - } - } - - section.is-mobile { - display: none; - } - h2, h3 { width: 100%; text-align: center; @@ -128,21 +81,11 @@ margin: 0; padding: 0; overflow-y: auto; - } + } } @media only screen and (max-width: 800px), only screen and (max-height: 800px) { div.about-room-main { - section.share-url.not-mobile { - display: none; - } - - section.is-mobile { - display: block; - text-align: center; - margin-bottom: 20px; - } - section.container-overflow { height: calc(100% - 120px); } diff --git a/front/src/Components/Menu/GuestSubMenu.svelte b/front/src/Components/Menu/GuestSubMenu.svelte index d054ff4d..bda16ca5 100644 --- a/front/src/Components/Menu/GuestSubMenu.svelte +++ b/front/src/Components/Menu/GuestSubMenu.svelte @@ -1,6 +1,4 @@