diff --git a/apps/desktop/src/components/backup/ScheduledDatabaseBackupSettings.vue b/apps/desktop/src/components/backup/ScheduledDatabaseBackupSettings.vue index 6f9ab533f..143b5f09d 100644 --- a/apps/desktop/src/components/backup/ScheduledDatabaseBackupSettings.vue +++ b/apps/desktop/src/components/backup/ScheduledDatabaseBackupSettings.vue @@ -381,7 +381,7 @@ function restoreBackup(run: DatabaseBackupRun, file: DatabaseBackupFile) { - + {{ editingScheduleId ? t("databaseBackup.editSchedule") : t("databaseBackup.addSchedule") }} diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index 5939fffed..0432f8aae 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -6377,7 +6377,7 @@ function openExternalUrl(url: string) { .connection-dialog-content { display: flex; flex-direction: column; - max-height: calc(100dvh - 2rem); + max-height: calc(var(--dbx-viewport-height) - 2rem); } @media (min-width: 640px) { diff --git a/apps/desktop/src/components/diff/SchemaDiffDialog.vue b/apps/desktop/src/components/diff/SchemaDiffDialog.vue index 94e7a273a..d01153f17 100644 --- a/apps/desktop/src/components/diff/SchemaDiffDialog.vue +++ b/apps/desktop/src/components/diff/SchemaDiffDialog.vue @@ -106,10 +106,10 @@ const isMaximized = ref(false); const dialogStyle = computed(() => { if (isMaximized.value) { return { - width: "100vw", - height: "100vh", - maxWidth: "100vw", - maxHeight: "100vh", + width: "100%", + height: "100%", + maxWidth: "100%", + maxHeight: "100%", borderRadius: "0", }; } @@ -133,6 +133,13 @@ function toggleMaximize() { isMaximized.value = !isMaximized.value; } +function handleDialogEscape(event: KeyboardEvent) { + if (!showOptionsPanel.value) return; + + event.preventDefault(); + showOptionsPanel.value = false; +} + let resizeObserver: ResizeObserver | null = null; let saveTimeout: number | null = null; @@ -679,7 +686,7 @@ const targetConnectionInfo = computed(() => {