From 5b13bb065ad0f7a7404d0bb255777bb927c17ab2 Mon Sep 17 00:00:00 2001 From: zurdi zurdo Date: Wed, 12 Apr 2023 18:29:44 +0200 Subject: [PATCH 1/6] small and big gallery views added --- frontend/src/components/AppBar/Base.vue | 4 ++- .../src/components/AppBar/GalleryViewBtn.vue | 25 +++++++++++++++++++ .../src/components/AppBar/PlatformsBtn.vue | 3 ++- .../src/components/GameCard/ActionBar.vue | 6 ++--- frontend/src/components/GameCard/Base.vue | 9 ------- frontend/src/components/GameCard/Cover.vue | 18 ++++++++++--- .../src/components/SettingsDrawer/Base.vue | 2 +- frontend/src/utils/utils.js | 8 +++++- frontend/src/views/Gallery.vue | 13 ++++++++-- 9 files changed, 67 insertions(+), 21 deletions(-) create mode 100644 frontend/src/components/AppBar/GalleryViewBtn.vue diff --git a/frontend/src/components/AppBar/Base.vue b/frontend/src/components/AppBar/Base.vue index e87997fdc..220807374 100644 --- a/frontend/src/components/AppBar/Base.vue +++ b/frontend/src/components/AppBar/Base.vue @@ -2,9 +2,10 @@ import { ref, inject } from "vue" import RomMIcon from '@/components/AppBar/RomMIcon.vue' import PlatformsBtn from '@/components/AppBar/PlatformsBtn.vue' +import UploadBtn from '@/components/AppBar/UploadBtn.vue' import SearchBar from '@/components/AppBar/SearchBar.vue' +import GalleryViewBtn from '@/components/AppBar/GalleryViewBtn.vue' import SettingsBtn from '@/components/AppBar/SettingsBtn.vue' -import UploadBtn from '@/components/AppBar/UploadBtn.vue' // Props const scanning = ref(false) @@ -34,6 +35,7 @@ emitter.on('scanning', (s) => { scanning.value = s }) diff --git a/frontend/src/components/AppBar/GalleryViewBtn.vue b/frontend/src/components/AppBar/GalleryViewBtn.vue new file mode 100644 index 000000000..f352fa09c --- /dev/null +++ b/frontend/src/components/AppBar/GalleryViewBtn.vue @@ -0,0 +1,25 @@ + + + \ No newline at end of file diff --git a/frontend/src/components/AppBar/PlatformsBtn.vue b/frontend/src/components/AppBar/PlatformsBtn.vue index 8b6bb73d4..6f0572b62 100644 --- a/frontend/src/components/AppBar/PlatformsBtn.vue +++ b/frontend/src/components/AppBar/PlatformsBtn.vue @@ -16,7 +16,8 @@ emitter.on('selectedPlatform', (p) => { selectedPlatform.value = p }) rounded="0" icon> - + + \ No newline at end of file diff --git a/frontend/src/components/GameCard/ActionBar.vue b/frontend/src/components/GameCard/ActionBar.vue index 0dbc206b6..71076bf9e 100644 --- a/frontend/src/components/GameCard/ActionBar.vue +++ b/frontend/src/components/GameCard/ActionBar.vue @@ -17,19 +17,19 @@ const emitter = inject('emitter') diff --git a/frontend/src/components/GameCard/Base.vue b/frontend/src/components/GameCard/Base.vue index bcc21d449..3e511f25f 100644 --- a/frontend/src/components/GameCard/Base.vue +++ b/frontend/src/components/GameCard/Base.vue @@ -21,15 +21,6 @@ const props = defineProps(['rom']) \ No newline at end of file diff --git a/frontend/src/components/SettingsDrawer/Base.vue b/frontend/src/components/SettingsDrawer/Base.vue index b7e114b01..ce445cdd9 100644 --- a/frontend/src/components/SettingsDrawer/Base.vue +++ b/frontend/src/components/SettingsDrawer/Base.vue @@ -27,7 +27,7 @@ emitter.on('toggleSettings', () => { settingsDrawer.value = !settingsDrawer.valu - +