Added missing key for elements

This commit is contained in:
Justin Forlenza
2023-04-16 16:35:19 -04:00
parent af7ab8c54a
commit 01e4c3ef1c
3 changed files with 5 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ emitter.emit('selectedPlatform', selectedPlatform.value)
</v-row>
<v-divider class="border-opacity-25 hidden-md-and-up"/>
<platform v-for="platform in platforms" :platform="platform" :rail="rail"/>
<platform v-for="platform in platforms" :platform="platform" :rail="rail" :key="platform.slug"/>
</v-list>
<template v-slot:append>

View File

@@ -187,7 +187,7 @@ async function deleteRom() {
</v-row>
<v-row v-if="rom.tags.length>0" class="d-flex align-center text-body-1 mt-0">
<v-col cols="3" xs="3" sm="2" md="2" lg="2" class="font-weight-medium"><p>Tags</p></v-col>
<v-col><v-chip-group class="pt-0"><v-chip v-for="tag in rom.tags" class="bg-chip" label>{{ tag }}</v-chip></v-chip-group></v-col>
<v-col><v-chip-group class="pt-0"><v-chip v-for="tag in rom.tags" :key="tag" class="bg-chip" label>{{ tag }}</v-chip></v-chip-group></v-col>
</v-row>
<v-row class="d-flex mt-3">
<v-col class="font-weight-medium text-caption"><p>{{ rom.summary }}</p></v-col>
@@ -237,7 +237,7 @@ async function deleteRom() {
<v-row class="justify-center align-center loader-searching" v-show="searching"><v-progress-circular :width="2" :size="40" class="pa-3 ma-3" color="secondary" indeterminate/></v-row>
<v-row class="justify-center align-center no-results-searching" v-show="!searching && matchedRoms.length==0" ><p>No results found</p></v-row>
<v-row class="pl-4 pr-4">
<v-col cols="6" xs="6" sm="4" md="3" lg="3" v-show="!searching" v-for="rom in matchedRoms">
<v-col cols="6" xs="6" sm="4" md="3" lg="3" v-show="!searching" v-for="rom in matchedRoms" :key="rom.file_name">
<v-hover v-slot="{isHovering, props}">
<v-card @click="updateRom(rom, undefined)" v-bind="props" :class="{'on-hover': isHovering}" :elevation="isHovering ? 20 : 3">
<v-img v-bind="props" :src="rom.url_cover" cover/>

View File

@@ -53,6 +53,7 @@ onMounted(() => {
<v-row v-show="currentView != 2">
<v-col v-for="rom in romsFiltered"
:key="rom.file_name"
:cols="views[currentView]['size-cols']"
:xs="views[currentView]['size-xs']"
:sm="views[currentView]['size-sm']"
@@ -66,7 +67,7 @@ onMounted(() => {
<v-list v-show="currentView == 2" class="bg-background">
<game-list-header/>
<v-divider class="border-opacity-100 ml-3 mb-4 mr-3" color="secondary" :thickness="1"/>
<game-list-item v-for="rom in romsFiltered" :rom="rom"/>
<game-list-item v-for="rom in romsFiltered" :key="rom.file_name" :rom="rom"/>
</v-list>
<no-roms :noRoms="noRoms" />