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); + } + }
-
+ -

Informations on the map

+
+

Share the link of the room !

+ +
+

Information on the map

{mapName}

{mapDescription}

@@ -91,6 +105,10 @@ } } + section.is-mobile { + display: none; + } + h2, h3 { width: 100%; text-align: center; @@ -111,10 +129,16 @@ @media only screen and (max-height: 900px) { div.about-room-main { - section.share-url input { + 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/CreateMapSubMenu.svelte b/front/src/Components/Menu/CreateMapSubMenu.svelte index 33d677ae..60e2a4b3 100644 --- a/front/src/Components/Menu/CreateMapSubMenu.svelte +++ b/front/src/Components/Menu/CreateMapSubMenu.svelte @@ -1,21 +1,16 @@ - -
- -
\ No newline at end of file diff --git a/front/src/Components/Menu/GlobalMessagesSubMenu.svelte b/front/src/Components/Menu/GlobalMessagesSubMenu.svelte index 19bed4e0..451d3b53 100644 --- a/front/src/Components/Menu/GlobalMessagesSubMenu.svelte +++ b/front/src/Components/Menu/GlobalMessagesSubMenu.svelte @@ -62,7 +62,7 @@ \ No newline at end of file diff --git a/front/src/Components/Menu/Menu.svelte b/front/src/Components/Menu/Menu.svelte index b75dad89..7f62f612 100644 --- a/front/src/Components/Menu/Menu.svelte +++ b/front/src/Components/Menu/Menu.svelte @@ -6,15 +6,14 @@ import AboutRoomSubMenu from "./AboutRoomSubMenu.svelte"; import GlobalMessageSubMenu from "./GlobalMessagesSubMenu.svelte"; import ContactSubMenu from "./ContactSubMenu.svelte"; - import CustomSubMenu from "./CustomSubMenu.svelte"; import {menuVisiblilityStore, SubMenusInterface, subMenusStore} from "../../Stores/MenuStore"; //import {userIsAdminStore} from "../../Stores/GameStore"; import {onMount} from "svelte"; import {get} from "svelte/store"; + import {sendMenuClickedEvent} from "../../Api/iframe/Ui/MenuItem"; let activeSubMenu: string = SubMenusInterface.settings; - let props: { menuCommand: string } = { menuCommand: SubMenusInterface.settings}; - let activeComponent: typeof SettingsSubMenu | typeof CustomSubMenu = SettingsSubMenu; + let activeComponent: typeof SettingsSubMenu = SettingsSubMenu; onMount(() => { //TODO: Uncomment before final push to merge @@ -28,7 +27,6 @@ function switchMenu(menu: string) { if (get(subMenusStore).find((subMenu) => subMenu === menu)) { activeSubMenu = menu; - props = {menuCommand: menu}; switch (menu) { case SubMenusInterface.settings: activeComponent = SettingsSubMenu; @@ -49,7 +47,8 @@ activeComponent = ContactSubMenu; break; default: - activeComponent = CustomSubMenu; + sendMenuClickedEvent(menu); + menuVisiblilityStore.set(false); break; } } else throw ("There is no menu called " + menu); @@ -81,7 +80,7 @@
@@ -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; + } + } +}