canged version selector to info details

This commit is contained in:
Zurdi
2024-01-01 22:13:03 +01:00
parent a38ba10c99
commit 90e87a3634
3 changed files with 14 additions and 8 deletions

View File

@@ -1,10 +1,19 @@
<script setup>
import storeDownload from "@/stores/download";
import VersionSwitcher from "@/components/Details/VersionSwitcher.vue";
const props = defineProps(["rom"]);
const downloadStore = storeDownload();
</script>
<template>
<v-row v-if="rom?.sibling_roms.length > 0" class="d-flex align-center text-body-1 mt-0 py-2" no-gutters>
<v-col cols="2" xs="2" sm="2" md="2" lg="1" xl="1" class="font-weight-medium">
<span>Ver.</span>
</v-col>
<v-col>
<version-switcher :rom="rom" />
</v-col>
</v-row>
<v-row
v-if="!rom.multi"
class="d-flex align-center text-body-1 mt-0 py-2"

View File

@@ -1,7 +1,6 @@
<script setup>
import { useDisplay } from "vuetify";
import PlatformIcon from "@/components/Platform/PlatformIcon.vue";
import VersionSwitcher from "@/components/Details/VersionSwitcher.vue";
import { regionToEmoji, languageToEmoji } from "@/utils/utils";
const props = defineProps(["rom"]);
@@ -48,9 +47,6 @@ const { smAndUp } = useDisplay();
>Revision {{ rom.revision }}
</v-chip>
</v-row>
<v-row>
<version-switcher v-if="rom?.sibling_roms.length > 0" :rom="rom" />
</v-row>
</template>
<style scoped>

View File

@@ -26,7 +26,8 @@ function updateVersion() {
label="Version"
variant="outlined"
density="compact"
class="pl-3 version-select"
class="version-select"
hide-details
v-model="version"
@update:model-value="updateVersion"
:items="
@@ -41,8 +42,8 @@ function updateVersion() {
<style scoped>
.version-select {
position: absolute;
width: fit-content;
min-width: 8rem;
/* position: absolute; */
max-width: fit-content;
/* min-width: 8rem; */
}
</style>