Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/1152-backup-details-panel-height.md
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 2 additions & 0 deletions web/e2e/screenshots/slice-3.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/backups/BackupDetailDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function BackupDetailDrawer({ name, ns, onClose, onRestore, target: expli
>
<Drawer.Backdrop>
<Drawer.Content placement="right" className="me-4">
<Drawer.Dialog className="flex flex-col w-[440px] h-[760px] p-0">
<Drawer.Dialog className="flex flex-col w-[440px] p-0">
<Drawer.Header className="shrink-0 border-b border-border p-5 flex flex-row items-center justify-between gap-3">
<div className="space-y-1">
<Drawer.Heading className="text-base font-semibold">{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" })}</Drawer.Heading>
Expand Down
Loading