diff --git a/playwright/e2e/right-panel/right-panel.spec.ts b/playwright/e2e/right-panel/right-panel.spec.ts index 363aedae20..cc03963801 100644 --- a/playwright/e2e/right-panel/right-panel.spec.ts +++ b/playwright/e2e/right-panel/right-panel.spec.ts @@ -67,6 +67,15 @@ test.describe("RightPanel", () => { }, ); + test("should have padding under leave room", { tag: "@screenshot" }, async ({ page, app }) => { + await viewRoomSummaryByName(page, app, ROOM_NAME); + + const leaveButton = await page.getByRole("menuitem", { name: "Leave Room" }); + await leaveButton.scrollIntoViewIfNeeded(); + + await expect(page.locator(".mx_RightPanel")).toMatchScreenshot("with-leave-room.png"); + }); + test("should handle clicking add widgets", async ({ page, app }) => { await viewRoomSummaryByName(page, app, ROOM_NAME); diff --git a/playwright/snapshots/right-panel/right-panel.spec.ts/with-leave-room-linux.png b/playwright/snapshots/right-panel/right-panel.spec.ts/with-leave-room-linux.png new file mode 100644 index 0000000000..a2bc63aaf4 Binary files /dev/null and b/playwright/snapshots/right-panel/right-panel.spec.ts/with-leave-room-linux.png differ diff --git a/res/css/views/right_panel/_RoomSummaryCard.pcss b/res/css/views/right_panel/_RoomSummaryCard.pcss index fb1d6f7d9c..eb3b14579f 100644 --- a/res/css/views/right_panel/_RoomSummaryCard.pcss +++ b/res/css/views/right_panel/_RoomSummaryCard.pcss @@ -100,3 +100,7 @@ Please see LICENSE files in the repository root for full details. .mx_RoomSummaryCard_roomName { margin: $spacing-12 0 $spacing-4; } + +.mx_RoomSummaryCard_leave { + margin: 0 0 var(--cpd-space-8x); +} diff --git a/src/components/views/right_panel/RoomSummaryCard.tsx b/src/components/views/right_panel/RoomSummaryCard.tsx index 2d3453feba..1a1655ee74 100644 --- a/src/components/views/right_panel/RoomSummaryCard.tsx +++ b/src/components/views/right_panel/RoomSummaryCard.tsx @@ -441,6 +441,7 @@ const RoomSummaryCard: React.FC = ({ has button to edit topic 1`] = ` role="separator" />