mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-28 11:37:29 +08:00
Make search site dialog fullscreen on small screens
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user