From 587da5b7dc162782df58339e969581787d28d0cf Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Tue, 14 Mar 2023 14:32:12 +0000 Subject: [PATCH] Initialize line-height for room name on IRC layout (#10188) --- cypress/e2e/timeline/timeline.spec.ts | 3 +++ res/css/views/rooms/_IRCLayout.pcss | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/cypress/e2e/timeline/timeline.spec.ts b/cypress/e2e/timeline/timeline.spec.ts index 18bbaa04c7..537b796f34 100644 --- a/cypress/e2e/timeline/timeline.spec.ts +++ b/cypress/e2e/timeline/timeline.spec.ts @@ -161,6 +161,9 @@ describe("Timeline", () => { "created and configured the room.", ).should("exist"); + // Check room name line-height is reset + cy.get(".mx_IRCLayout .mx_NewRoomIntro h2").should("have.css", "line-height", "normal"); + cy.get(".mx_MainSplit").percySnapshotElement("Configured room on IRC layout"); }); diff --git a/res/css/views/rooms/_IRCLayout.pcss b/res/css/views/rooms/_IRCLayout.pcss index b3a98b571e..61a7c5e090 100644 --- a/res/css/views/rooms/_IRCLayout.pcss +++ b/res/css/views/rooms/_IRCLayout.pcss @@ -23,6 +23,12 @@ $irc-line-height: $font-18px; line-height: $irc-line-height !important; + .mx_NewRoomIntro { + > h2 { + line-height: initial; /* Cancel $irc-line-height */ + } + } + .mx_EventTile { --EventTile_irc_line-padding-block: 1px;