mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
clean code
This commit is contained in:
@@ -6,14 +6,13 @@ import { useDisplay } from "vuetify";
|
||||
defineProps<{ rom: Rom }>();
|
||||
const { xs } = useDisplay();
|
||||
const galleryFilter = storeGalleryFilter();
|
||||
const capitalizeString = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);
|
||||
</script>
|
||||
<template>
|
||||
<v-divider class="mx-2 my-4" />
|
||||
<template v-for="filter in galleryFilter.filters">
|
||||
<v-row v-if="rom[filter].length > 0" class="align-center my-3" no-gutters>
|
||||
<v-col cols="3" sm="3" md="2" xl="1">
|
||||
<span>{{ capitalizeString(filter) }}</span>
|
||||
<v-col cols="3" sm="3" md="2" xl="1" class="text-capitalize">
|
||||
<span>{{ filter }}</span>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-chip v-for="value in rom[filter]" class="my-1 mr-2" label>
|
||||
|
||||
Reference in New Issue
Block a user