From 604bd26904dbe62b6e8a6a3ec5f5427804f43872 Mon Sep 17 00:00:00 2001 From: O3H Date: Sun, 24 Nov 2024 05:36:38 +0000 Subject: [PATCH] Fixes/qol in SelectedGame view - Remove redundant div in SelectedGame, made viewport row instead. - Fixed tab labels in SelectedGame wrapping so resizing flows nicely. - Translated the "No mods installed" text in SelectedGame. - Partially fixed some margin and width calc issues by using the app store. - "Start Modded" button now disabled while no mods are installed. --- frontend/src/assets/styles/global.css | 1 - frontend/src/components/general/Sidebar.vue | 4 +- frontend/src/components/reusable/Viewport.vue | 9 +- .../selected-game/ProfileManager.vue | 2 +- frontend/src/i18n/locales/de.json | 3 +- frontend/src/i18n/locales/en.json | 3 +- frontend/src/i18n/locales/es.json | 3 +- frontend/src/i18n/locales/fr.json | 3 +- frontend/src/i18n/locales/it.json | 3 +- frontend/src/stores/index.ts | 20 +- frontend/src/views/Dashboard.vue | 3 +- frontend/src/views/SelectedGame.vue | 388 ++++++++++-------- 12 files changed, 243 insertions(+), 199 deletions(-) diff --git a/frontend/src/assets/styles/global.css b/frontend/src/assets/styles/global.css index 65455a4..f58288d 100644 --- a/frontend/src/assets/styles/global.css +++ b/frontend/src/assets/styles/global.css @@ -39,7 +39,6 @@ body { padding: 0; width: 100%; height: 100%; - overflow: hidden; } body::before { diff --git a/frontend/src/components/general/Sidebar.vue b/frontend/src/components/general/Sidebar.vue index 40c1734..9a8bb11 100644 --- a/frontend/src/components/general/Sidebar.vue +++ b/frontend/src/components/general/Sidebar.vue @@ -14,7 +14,7 @@ const appInfo = useDialog('app-info') const appStore = useAppStore() const { sidebarExpanded, - sidebarWidth + sidebarWidthPx } = storeToRefs(appStore) const Dashboard = () => router.push('/') @@ -145,7 +145,7 @@ const ModDevTools = () => router.push('/mod-dev-tools') align-items: center; position: fixed; z-index: 999; - width: v-bind(sidebarWidth); + width: v-bind(sidebarWidthPx); } .collapsed { diff --git a/frontend/src/components/reusable/Viewport.vue b/frontend/src/components/reusable/Viewport.vue index f393c4c..3a03505 100644 --- a/frontend/src/components/reusable/Viewport.vue +++ b/frontend/src/components/reusable/Viewport.vue @@ -4,10 +4,9 @@ import { useAppStore } from '@stores' const appStore = useAppStore() const { - sidebarWidth + sidebarOffsetPx, + topbarHeight } = storeToRefs(appStore) - -const topbarHeight = '30px'