little UI tweaks

This commit is contained in:
zurdi
2024-04-05 02:12:24 +02:00
parent eda6d78c4b
commit c5dffaa5bd
5 changed files with 77 additions and 25 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -13,7 +13,7 @@ const theme = useTheme();
sm="3"
md="3"
lg="4"
xl="3"
xl="6"
v-for="expansion in rom.igdb_metadata?.expansions"
>
<a
@@ -69,7 +69,7 @@ const theme = useTheme();
sm="3"
md="3"
lg="4"
xl="3"
xl="6"
v-for="dlc in rom.igdb_metadata?.dlcs"
>
<a

View File

@@ -268,28 +268,59 @@ onBeforeUnmount(() => {
/>
</div>
</template>
<v-row no-gutters class="text-white px-1">
<v-chip
class="translucent mr-1 mt-1"
label
v-if="matchedRom.igdb_id"
<v-expand-transition>
<div
v-if="isHovering || !matchedRom.url_cover"
class="translucent text-caption"
>
<span> IGDB </span>
</v-chip>
<v-chip
class="translucent mr-1 mt-1"
label
v-if="matchedRom.moby_id"
>
<span> Moby </span>
</v-chip>
</v-row>
</v-img></v-hover
>
<v-list-item>{{ matchedRom.name }}</v-list-item>
</div>
</v-expand-transition>
<v-row no-gutters class="text-white pa-1">
<v-tooltip
location="top"
class="tooltip"
transition="fade-transition"
text="IGDB matched"
open-delay="500"
><template v-slot:activator="{ props }">
<v-avatar
v-bind="props"
v-if="matchedRom.igdb_id"
class="mr-1"
size="30"
rounded="1"
>
<v-img
src="/assets/scrappers/igdb.png"
/> </v-avatar></template
></v-tooltip>
<v-tooltip
location="top"
class="tooltip"
transition="fade-transition"
text="Mobygames matched"
open-delay="500"
><template v-slot:activator="{ props }">
<v-avatar
v-bind="props"
v-if="matchedRom.moby_id"
class="mr-1"
size="30"
rounded="1"
>
<v-img
src="/assets/scrappers/moby.png"
/> </v-avatar></template
></v-tooltip>
</v-row> </v-img
></v-hover>
<v-card-text>
<v-row class="pa-1 align-center">
<v-col class="pa-0 ml-1 text-truncate">
<span :title="matchedRom.name">{{ matchedRom.name }}</span>
<span :title="matchedRom.name">{{
matchedRom.name
}}</span>
</v-col>
</v-row>
</v-card-text>
@@ -345,4 +376,8 @@ onBeforeUnmount(() => {
backdrop-filter: blur(10px);
text-shadow: 1px 1px 1px #000000, 0 0 1px #000000;
}
.tooltip :deep(.v-overlay__content) {
background: rgba(201, 201, 201, 0.98) !important;
color: rgb(41, 41, 41) !important;
}
</style>

View File

@@ -6,12 +6,14 @@ import socket from "@/services/socket";
import storeHeartbeat from "@/stores/heartbeat";
import storePlatforms, { type Platform } from "@/stores/platforms";
import storeScanning from "@/stores/scanning";
import { useDisplay } from "vuetify";
// Props
const scanningStore = storeScanning();
const { scanning, scanningPlatforms, scanStats } = storeToRefs(scanningStore);
const platforms = storePlatforms();
const heartbeat = storeHeartbeat();
const { smAndDown } = useDisplay();
const scanOptions = [
{
@@ -90,7 +92,7 @@ watch(metadataOptions, (newOptions) => {
<template>
<!-- Platform selector -->
<v-row class="px-4 pt-4 align-center" no-gutters>
<v-col cols="6" class="pr-1">
<v-col cols="12" xs="12" sm="12" md="6" xl="6" class="pr-1">
<v-select
label="Platforms"
item-title="name"
@@ -116,7 +118,15 @@ watch(metadataOptions, (newOptions) => {
</template>
</v-select>
</v-col>
<v-col cols="3" class="pr-1">
<v-col
cols="12"
xs="5"
sm="5"
md="3"
xl="3"
class="pr-1"
:class="{ 'mt-3': smAndDown }"
>
<v-select
label="Metadata sources"
item-title="name"
@@ -146,7 +156,15 @@ watch(metadataOptions, (newOptions) => {
</template>
</v-select>
</v-col>
<v-col cols="3">
<v-col
cols="12"
xs="7"
sm="7"
md="3"
xl="3"
class="pr-1"
:class="{ 'mt-3': smAndDown }"
>
<!-- Scan options -->
<v-select
hide-details
@@ -155,7 +173,6 @@ watch(metadataOptions, (newOptions) => {
label="Scan option"
v-model="scanType"
:items="scanOptions"
class="py-3"
>
<template v-slot:item="{ props, item }">
<v-list-item
@@ -200,7 +217,7 @@ watch(metadataOptions, (newOptions) => {
</v-btn>
<span
v-if="metadataSources.length == 0"
class="ml-4 text-caption text-yellow"
class="ml-4 text-caption text-yellow py-4"
>
<v-icon class="mr-2">mdi-alert</v-icon>
Please select at least one metadata source.