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