Make search site dialog fullscreen on small screens

This commit is contained in:
jxxghp
2026-07-01 09:48:41 +08:00
parent 4fe65b770e
commit 60c46ebbaf

View File

@@ -1,10 +1,14 @@
<script setup lang="ts">
import type { Site } from '@/api/types'
import { useI18n } from 'vue-i18n'
import { useDisplay } from 'vuetify'
// 多语言支持
const { t } = useI18n()
// 显示器宽度
const display = useDisplay()
const props = defineProps({
sites: {
type: Array as PropType<Site[]>,
@@ -84,7 +88,7 @@ const filteredSites = computed(() => {
</script>
<template>
<!-- Site Selection Dialog -->
<VDialog max-width="40rem" fullscreen-mobile>
<VDialog max-width="40rem" :fullscreen="!display.smAndUp.value">
<VCard class="site-dialog">
<VCardItem>
<template #prepend>