diff --git a/changelog/unreleased/1152-backup-details-panel-height.md b/changelog/unreleased/1152-backup-details-panel-height.md new file mode 100644 index 000000000..a63a59f5c --- /dev/null +++ b/changelog/unreleased/1152-backup-details-panel-height.md @@ -0,0 +1,5 @@ +# Backup details panel fills the window height + +The backup details side panel was fixed at 760px high. It now uses the full +window height, so its content no longer scrolls when there is room, and the +Delete and Restore buttons stay visible on short windows. [PR #1152](https://github.com/GameplanePanel/Gameplane/pull/1152) diff --git a/web/e2e/screenshots/slice-3.spec.ts b/web/e2e/screenshots/slice-3.spec.ts index 29a068280..9ad3b0dfa 100644 --- a/web/e2e/screenshots/slice-3.spec.ts +++ b/web/e2e/screenshots/slice-3.spec.ts @@ -211,6 +211,8 @@ test.describe("Slice 3: Create Server, Modules, Backups (Desktop — 1440x900) @ test("zhLZN: Backup Detail Drawer", async ({ page }) => { // Design PNG is light theme — see setTheme()'s note. await setTheme(page, "light"); + // The drawer fills the window height; design.fig draws it at 440x760. + await page.setViewportSize({ width: 1440, height: 760 }); // Freeze the clock so BackupDetailDrawer's formatRelative(startTime) / // formatRelative(completionTime) read "3h ago" (assets/design-export/json/ // zhLZN.json) instead of drifting with the real wall clock. The diff --git a/web/src/components/backups/BackupDetailDrawer.tsx b/web/src/components/backups/BackupDetailDrawer.tsx index bd0d438ea..804926d16 100644 --- a/web/src/components/backups/BackupDetailDrawer.tsx +++ b/web/src/components/backups/BackupDetailDrawer.tsx @@ -60,7 +60,7 @@ export function BackupDetailDrawer({ name, ns, onClose, onRestore, target: expli > - +
{intl.formatMessage({ id: "web.components.backups.backup_detail_drawer.backup_details", defaultMessage: "Backup details", description: "Backup details drawer: heading at the top of the side panel for one backup; the backup name is shown below it" })}