mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
feat: add fullscreen support to TransparencySettingsDialog based on display size
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useTransparencySettings } from '@/composables/useTransparencySettings'
|
import { useTransparencySettings } from '@/composables/useTransparencySettings'
|
||||||
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 = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -48,7 +52,7 @@ const {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VDialog v-if="visible" v-model="visible" max-width="30rem">
|
<VDialog v-if="visible" v-model="visible" max-width="30rem" scrollable :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
/* stylelint-disable no-duplicate-selectors */
|
||||||
|
/* stylelint-disable no-descending-specificity */
|
||||||
/* stylelint-disable scss/at-rule-no-unknown */
|
/* stylelint-disable scss/at-rule-no-unknown */
|
||||||
|
|
||||||
// 透明主题专用样式
|
// 透明主题专用样式
|
||||||
@@ -250,7 +252,6 @@ html[data-theme="transparent"].transparent-glass-realtime {
|
|||||||
.agent-assistant-panel,
|
.agent-assistant-panel,
|
||||||
.agent-assistant-fab__bubble,
|
.agent-assistant-fab__bubble,
|
||||||
.nav-button,
|
.nav-button,
|
||||||
.layout-navbar,
|
|
||||||
.v-overlay__content,
|
.v-overlay__content,
|
||||||
.v-overlay__content .v-card:not(.bg-primary),
|
.v-overlay__content .v-card:not(.bg-primary),
|
||||||
.v-overlay__content .v-list {
|
.v-overlay__content .v-list {
|
||||||
|
|||||||
Reference in New Issue
Block a user