From b6b17d1ef08236553677af7cc07172f668488056 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Fri, 26 Jan 2024 16:01:56 +0800 Subject: [PATCH] 1 --- src/MainPage.vue | 47 +++++++++++++++++++++++++------------ src/components/HeadTime.vue | 8 +++---- src/components/NavMenu.vue | 4 ++-- src/components/Tools.vue | 18 +++++++------- src/pages/3D.vue | 4 ++-- src/store/settings.js | 3 ++- 6 files changed, 51 insertions(+), 33 deletions(-) diff --git a/src/MainPage.vue b/src/MainPage.vue index ab51f0b..92ac38c 100644 --- a/src/MainPage.vue +++ b/src/MainPage.vue @@ -1,5 +1,5 @@ @@ -40,7 +40,7 @@ function handleChangeResolution(w, h) { diff --git a/src/pages/3D.vue b/src/pages/3D.vue index 9461692..d5172ce 100644 --- a/src/pages/3D.vue +++ b/src/pages/3D.vue @@ -629,9 +629,9 @@ watch(() => settings.fullscreen, val => { transform: translateX(-58%); } -:fullscreen .absolute-full { +/* :fullscreen .absolute-full { transform: translateX(-80%); -} +} */ .info-1 .info:nth-child(1) { /* left: 490px; diff --git a/src/store/settings.js b/src/store/settings.js index f42c623..8bb6a78 100644 --- a/src/store/settings.js +++ b/src/store/settings.js @@ -27,7 +27,8 @@ export const useSettings = defineStore("settings", () => { watch( () => settings.value.fullscreen, (val) => { - const mainContainer = document.getElementById("main-container"); + // const mainContainer = document.getElementById("main-container"); + const mainContainer = document.documentElement; if (val) { mainContainer.requestFullscreen().then(() => { document.removeEventListener("fullscreenchange", clearFullscreenFlag);