fix(desktop): add legacy webview fallbacks for snapshots and dialogs

This commit is contained in:
知食分子 authored and GitHub committed 2026-08-27 10:55:05 +08:00
1 parent afcfa59d0b
commit ba8df70fe6
8 files changed
+232 -13

No files matched your search

@@ -90,7 +90,7 @@ watch(
<template>
<Dialog :open="open" @update:open="handleOpenChange">
<DialogContent
class="sm:max-w-[520px]"
class="dbx-update-dialog sm:max-w-[520px]"
:show-close-button="!isCloseBlocked"
@interact-outside="
(e: Event) => {
@@ -167,3 +167,14 @@ watch(
</DialogContent>
</Dialog>
</template>
<style>
html.dbx-legacy-webview [data-slot="dialog-content"].dbx-update-dialog[class~="max-w-sm"] {
max-width: 520px !important;
}
html.dbx-legacy-webview [data-slot="dialog-content"].dbx-update-dialog [data-slot="dialog-footer"] {
flex-direction: row !important;
justify-content: flex-end !important;
}
</style>