Merge pull request #438 from zurdi15/tiny-ui-tweaks

small ui tweaks
This commit is contained in:
Zurdi
2023-11-03 09:25:49 +01:00
committed by GitHub
4 changed files with 15 additions and 10 deletions

View File

@@ -1,23 +1,25 @@
<script setup>
import { useDisplay } from "vuetify";
import PlatformIcon from "@/components/Platform/PlatformIcon.vue";
const props = defineProps(["rom"]);
const { xs, sm, md, smAndUp } = useDisplay();
</script>
<template>
<v-row no-gutters>
<div class="text-h4 text-white font-weight-bold title text-truncate">
<div class="text-h5 text-white text-shadow font-weight-bold title" :class="{'text-truncate': smAndUp }">
{{ rom.r_name }}
</div>
</v-row>
<v-row no-gutters class="align-center mt-2">
<v-chip
class="font-italic text-white title py-5 px-3"
class="font-italic text-white text-shadow title pa-3"
:to="`/platform/${rom.p_slug}`"
>{{ rom.p_name || rom.p_slug
}}<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">
<v-chip-group v-if="rom.region || rom.revision" class="ml-3 text-white text-shadow">
<v-chip v-show="rom.region" size="x-small" class="bg-chip" label>{{
rom.region
}}</v-chip>
@@ -29,7 +31,7 @@ const props = defineProps(["rom"]);
</template>
<style scoped>
.title {
.text-shadow {
text-shadow: 1px 1px 3px #000000, 0 0 3px #000000;
}
</style>

View File

@@ -96,7 +96,7 @@ function onTouchEnd() {
<v-list-item>{{ rom.r_name || rom.file_name }}</v-list-item>
</div>
</v-expand-transition>
<v-chip-group class="pl-1 pt-0">
<v-chip-group class="pl-1 pt-0 text-white text-shadow">
<v-chip v-show="rom.region" size="x-small" class="bg-chip" label>
{{ rom.region }}
</v-chip>
@@ -128,4 +128,7 @@ function onTouchEnd() {
bottom: 0.2rem;
right: 0.2rem;
}
.text-shadow {
text-shadow: 1px 1px 3px #000000, 0 0 3px #000000;
}
</style>

View File

@@ -5,7 +5,7 @@ export const views = {
view: "small",
icon: "mdi-view-comfy",
"size-xl": 1,
"size-lg": 2,
"size-lg": 1,
"size-md": 2,
"size-sm": 2,
"size-xs": 3,
@@ -15,7 +15,7 @@ export const views = {
view: "big",
icon: "mdi-view-module",
"size-xl": 2,
"size-lg": 3,
"size-lg": 2,
"size-md": 3,
"size-sm": 3,
"size-xs": 6,

View File

@@ -150,7 +150,7 @@ onBeforeMount(async () => {
.content,
.content-tablet-md {
margin-top: 88px;
margin-top: 90px;
margin-left: 100px;
margin-right: 100px;
}
@@ -192,12 +192,12 @@ onBeforeMount(async () => {
}
.details-content {
margin-top: 94px;
margin-top: 104px;
max-width: 700px;
}
.details-content-tablet-md {
margin-top: 38px;
margin-top: 48px;
max-width: 700px;
}