mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
some ui tweaks
This commit is contained in:
@@ -34,7 +34,7 @@ onMounted(async () => {
|
||||
></v-toolbar
|
||||
>
|
||||
<v-divider class="border-opacity-25" />
|
||||
<v-card-text>
|
||||
<v-card-text class="scroll">
|
||||
<v-row
|
||||
ref="scroll_container"
|
||||
@mousewheel="scrollX"
|
||||
@@ -70,3 +70,8 @@ onMounted(async () => {
|
||||
<delete-rom-dialog />
|
||||
<loading-dialog />
|
||||
</template>
|
||||
<style scoped>
|
||||
.scroll {
|
||||
overflow-x: visible;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { onBeforeMount, ref } from "vue";
|
||||
|
||||
import api from "@/services/api/index";
|
||||
import { onBeforeMount, ref } from "vue";
|
||||
|
||||
const stats = ref({
|
||||
PLATFORMS: 0,
|
||||
@@ -19,24 +18,41 @@ onBeforeMount(async () => {
|
||||
</script>
|
||||
<template>
|
||||
<v-card rounded="0">
|
||||
<v-card-text class="pa-1">
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-controller</v-icon
|
||||
>{{ stats.PLATFORMS }} Platforms
|
||||
</v-chip>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-disc</v-icon>{{ stats.ROMS }} Games
|
||||
</v-chip>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-file</v-icon>{{ stats.SAVES }} Saves
|
||||
</v-chip>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-file</v-icon>{{ stats.STATES }} States
|
||||
</v-chip>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-image</v-icon
|
||||
>{{ stats.SCREENSHOTS }} Screenshots
|
||||
</v-chip>
|
||||
<v-card-text class="pa-1 scroll">
|
||||
<v-row no-gutters class="flex-nowrap overflow-x-auto py-1">
|
||||
<v-col>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-controller</v-icon
|
||||
>{{ stats.PLATFORMS }} Platforms
|
||||
</v-chip>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-disc</v-icon>{{ stats.ROMS }} Games
|
||||
</v-chip>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-file</v-icon>{{ stats.SAVES }} Saves
|
||||
</v-chip>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-file</v-icon>{{ stats.STATES }} States
|
||||
</v-chip>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-chip class="text-overline" variant="text" label>
|
||||
<v-icon class="mr-2">mdi-image</v-icon
|
||||
>{{ stats.SCREENSHOTS }} Screenshots
|
||||
</v-chip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
<style scoped>
|
||||
.scroll {
|
||||
overflow-x: visible;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -3,31 +3,30 @@ import type { RomSchema } from "../../__generated__/";
|
||||
import { useTheme } from "vuetify";
|
||||
const theme = useTheme();
|
||||
|
||||
defineProps<{ rom: RomSchema }>();
|
||||
const props = defineProps<{ rom: RomSchema }>();
|
||||
const imgSrc = !props.rom.has_cover
|
||||
? `/assets/romm/resources/default/default/cover/small_${theme.global.name.value}.png`
|
||||
: `/assets/romm/resources/${props.rom.path_cover_s}`;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-card id="header-background" rounded="0">
|
||||
<v-img
|
||||
:src="
|
||||
!rom.has_cover
|
||||
? `/assets/romm/resources/default/default/cover/small_${theme.global.name.value}.png`
|
||||
: `/assets/romm/resources/${rom.path_cover_s}`
|
||||
"
|
||||
id="header-background-img"
|
||||
cover
|
||||
/>
|
||||
<v-card rounded="0" flat>
|
||||
<v-img
|
||||
:src="imgSrc"
|
||||
:lazy-src="imgSrc"
|
||||
cover
|
||||
/>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
#header-background {
|
||||
.v-card {
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
max-height: 330px;
|
||||
}
|
||||
#header-background-img {
|
||||
.v-img {
|
||||
-webkit-filter: blur(15px);
|
||||
filter: blur(15px);
|
||||
transform: scale(1.05);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import AdminMenu from "@/components/Gallery/AppBar/AdminMenu.vue";
|
||||
import FilterBar from "@/components/Gallery/AppBar/FilterBar.vue";
|
||||
import ShowUnmatchedBtn from "@/components/Gallery/AppBar/ShowUnmatchedBtn.vue";
|
||||
import FilterUnmatchedBtn from "@/components/Gallery/AppBar/FilterUnmatchedBtn.vue";
|
||||
import FilterBtn from "@/components/Gallery/AppBar/FilterBtn.vue";
|
||||
import FilterTextField from "@/components/Gallery/AppBar/FilterTextField.vue";
|
||||
import GalleryViewBtn from "@/components/Gallery/AppBar/GalleryViewBtn.vue";
|
||||
@@ -17,7 +17,7 @@ const auth = storeAuth();
|
||||
<v-app-bar id="gallery-app-bar" elevation="0" density="compact">
|
||||
<sort-btn />
|
||||
<filter-btn />
|
||||
<show-unmatched-btn />
|
||||
<filter-unmatched-btn />
|
||||
<filter-text-field />
|
||||
<gallery-view-btn />
|
||||
<template v-if="auth.scopes.includes('roms.write')">
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
import type { Events } from "@/types/emitter";
|
||||
import type { Emitter } from "mitt";
|
||||
import { inject, ref } from "vue";
|
||||
import ShowUnmatchedBtn from "@/components/Gallery/AppBar/ShowUnmatchedBtn.vue";
|
||||
|
||||
// Props
|
||||
const showFilterBar = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user