mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 05:07:31 +01:00
details view minor fixes
This commit is contained in:
@@ -5,29 +5,25 @@ const downloadStore = storeDownload();
|
||||
const props = defineProps(["rom"]);
|
||||
</script>
|
||||
<template>
|
||||
<v-row no-gutters>
|
||||
<v-col>
|
||||
<v-card
|
||||
elevation="2"
|
||||
:loading="downloadStore.value.includes(rom.id) ? 'romm-accent-1' : null"
|
||||
>
|
||||
<v-img
|
||||
:src="`/assets/romm/resources/${rom.path_cover_l}`"
|
||||
:lazy-src="`/assets/romm/resources/${rom.path_cover_s}`"
|
||||
:aspect-ratio="3 / 4"
|
||||
>
|
||||
<template v-slot:placeholder>
|
||||
<div class="d-flex align-center justify-center fill-height">
|
||||
<v-progress-circular
|
||||
color="romm-accent-1"
|
||||
:width="2"
|
||||
:size="20"
|
||||
indeterminate
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</v-img>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-card
|
||||
elevation="2"
|
||||
:loading="downloadStore.value.includes(rom.id) ? 'romm-accent-1' : null"
|
||||
>
|
||||
<v-img
|
||||
:src="`/assets/romm/resources/${rom.path_cover_l}`"
|
||||
:lazy-src="`/assets/romm/resources/${rom.path_cover_s}`"
|
||||
:aspect-ratio="3 / 4"
|
||||
>
|
||||
<template v-slot:placeholder>
|
||||
<div class="d-flex align-center justify-center fill-height">
|
||||
<v-progress-circular
|
||||
color="romm-accent-1"
|
||||
:width="2"
|
||||
:size="20"
|
||||
indeterminate
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</v-img>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
@@ -10,7 +10,7 @@ const downloadStore = storeDownload();
|
||||
class="d-flex align-center text-body-1 mt-0 py-2"
|
||||
no-gutters
|
||||
>
|
||||
<v-col cols="2" xs="2" sm="1" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
<v-col cols="2" xs="2" sm="2" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
><span>File</span></v-col
|
||||
>
|
||||
<v-col class="text-body-1"
|
||||
@@ -22,7 +22,7 @@ const downloadStore = storeDownload();
|
||||
class="d-flex align-center text-body-1 mt-0 py-2"
|
||||
no-gutters
|
||||
>
|
||||
<v-col cols="2" xs="2" sm="1" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
<v-col cols="2" xs="2" sm="2" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
><span>Files</span></v-col
|
||||
>
|
||||
<v-col
|
||||
@@ -42,7 +42,7 @@ const downloadStore = storeDownload();
|
||||
/></v-col>
|
||||
</v-row>
|
||||
<v-row class="d-flex align-center text-body-1 mt-0 py-2" no-gutters>
|
||||
<v-col cols="2" xs="2" sm="1" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
<v-col cols="2" xs="2" sm="2" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
><span>Size</span></v-col
|
||||
>
|
||||
<v-col
|
||||
@@ -54,7 +54,7 @@ const downloadStore = storeDownload();
|
||||
class="d-flex align-center text-body-1 py-2"
|
||||
no-gutters
|
||||
>
|
||||
<v-col cols="2" xs="2" sm="1" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
<v-col cols="2" xs="2" sm="2" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
><span>IGDB</span></v-col
|
||||
>
|
||||
<v-col>
|
||||
@@ -72,7 +72,7 @@ const downloadStore = storeDownload();
|
||||
class="d-flex align-center text-body-1 mt-0 py-2"
|
||||
no-gutters
|
||||
>
|
||||
<v-col cols="2" xs="2" sm="1" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
<v-col cols="2" xs="2" sm="2" md="2" lg="1" xl="1" class="font-weight-medium"
|
||||
><span>Tags</span></v-col
|
||||
>
|
||||
<v-col
|
||||
|
||||
@@ -19,7 +19,7 @@ const { xs, sm, md, smAndUp } = useDisplay();
|
||||
}}<v-avatar :rounded="0" size="43" class="ml-2 pa-1">
|
||||
<platform-icon :platform="rom.p_slug"></platform-icon></v-avatar
|
||||
></v-chip>
|
||||
<v-chip-group v-if="rom.region || rom.revision" class="ml-3 text-white text-shadow">
|
||||
<v-chip-group v-if="rom.region || rom.revision" class="ml-3 pa-0 text-white text-shadow">
|
||||
<v-chip v-show="rom.region" size="x-small" class="bg-chip" label>{{
|
||||
rom.region
|
||||
}}</v-chip>
|
||||
|
||||
@@ -23,7 +23,7 @@ const { allRoms } = storeToRefs(romsStore);
|
||||
const rom = ref(allRoms.value.find((rom) => rom.id == route.params.rom));
|
||||
const tab = ref("details");
|
||||
const downloadUrl = ref();
|
||||
const { xs, sm, md, lgAndUp } = useDisplay();
|
||||
const { xs, sm, md, lgAndUp, name } = useDisplay();
|
||||
|
||||
// Event listeners bus
|
||||
const emitter = inject("emitter");
|
||||
@@ -117,17 +117,17 @@ onBeforeMount(async () => {
|
||||
</v-row>
|
||||
<v-row no-gutters>
|
||||
<v-col cols="12">
|
||||
<v-window v-model="tab" class="mt-2">
|
||||
<v-window-item value="details">
|
||||
<details-info :rom="rom" />
|
||||
</v-window-item>
|
||||
<v-window-item value="screenshots">
|
||||
<screenshots-carousel :rom="rom" />
|
||||
</v-window-item>
|
||||
<v-window-item value="saves">
|
||||
<v-row class="d-flex mt-2" no-gutters></v-row>
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
<v-window v-model="tab" class="mt-2">
|
||||
<v-window-item value="details">
|
||||
<details-info :rom="rom" />
|
||||
</v-window-item>
|
||||
<v-window-item value="screenshots">
|
||||
<screenshots-carousel :rom="rom" />
|
||||
</v-window-item>
|
||||
<v-window-item value="saves">
|
||||
<v-row class="d-flex mt-2" no-gutters></v-row>
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
@@ -152,10 +152,20 @@ onBeforeMount(async () => {
|
||||
.content-tablet-md {
|
||||
margin-top: 90px;
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-right: 250px;
|
||||
}
|
||||
.content-tablet-md {
|
||||
margin-right: 100px;
|
||||
}
|
||||
|
||||
.content-tablet-sm,
|
||||
.content-tablet-sm {
|
||||
margin-top: 20px;
|
||||
margin-left: 50px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
.content-mobile {
|
||||
margin-top: 20px;
|
||||
margin-left: 20px;
|
||||
@@ -193,17 +203,17 @@ onBeforeMount(async () => {
|
||||
}
|
||||
|
||||
.details-content {
|
||||
margin-top: 104px;
|
||||
margin-top: 108px;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.details-content-tablet-md {
|
||||
margin-top: 48px;
|
||||
margin-top: 52px;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.details-content-tablet-sm,
|
||||
.details-content-mobile {
|
||||
margin-top: 14px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user