From b90ea87d11e9f641ca24626be7b4966daed733f7 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sat, 16 Jul 2022 12:15:12 +0000 Subject: [PATCH] Re-add inline start padding to EventTile_line of GenericEventListSummary (#9063) --- cypress/e2e/14-timeline/timeline.spec.ts | 8 ++++++++ res/css/views/rooms/_EventTile.pcss | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/14-timeline/timeline.spec.ts b/cypress/e2e/14-timeline/timeline.spec.ts index 53f87de8b1..e941e6920e 100644 --- a/cypress/e2e/14-timeline/timeline.spec.ts +++ b/cypress/e2e/14-timeline/timeline.spec.ts @@ -143,6 +143,14 @@ describe("Timeline", () => { }); }); + it("should create and configure a room on IRC layout", () => { + cy.visit("/#/room/" + roomId); + cy.setSettingValue("layout", null, SettingLevel.DEVICE, Layout.IRC); + cy.contains(".mx_RoomView_body .mx_GenericEventListSummary[data-layout=irc] " + + ".mx_GenericEventListSummary_summary", "created and configured the room."); + cy.percySnapshot("Configured room on IRC layout"); + }); + it("should click 'collapse' link button on the first hovered info event line on bubble layout", () => { cy.visit("/#/room/" + roomId); cy.setSettingValue("layout", null, SettingLevel.DEVICE, Layout.Bubble); diff --git a/res/css/views/rooms/_EventTile.pcss b/res/css/views/rooms/_EventTile.pcss index fb02089d6f..1e48abb62f 100644 --- a/res/css/views/rooms/_EventTile.pcss +++ b/res/css/views/rooms/_EventTile.pcss @@ -487,9 +487,9 @@ $left-gutter: 64px; // Apply only collapsed events block > .mx_EventTile_line { + // 15 px of padding /* stylelint-disable-next-line declaration-colon-space-after */ padding-left: - // 15 px of padding calc(var(--name-width) + var(--icon-width) + $MessageTimestamp_width + 3 * var(--right-padding)); } }