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;