Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 587da5b

Browse files
authored
Initialize line-height for room name on IRC layout (#10188)
1 parent 8cb8cd4 commit 587da5b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cypress/e2e/timeline/timeline.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ describe("Timeline", () => {
161161
"created and configured the room.",
162162
).should("exist");
163163

164+
// Check room name line-height is reset
165+
cy.get(".mx_IRCLayout .mx_NewRoomIntro h2").should("have.css", "line-height", "normal");
166+
164167
cy.get(".mx_MainSplit").percySnapshotElement("Configured room on IRC layout");
165168
});
166169

res/css/views/rooms/_IRCLayout.pcss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ $irc-line-height: $font-18px;
2323

2424
line-height: $irc-line-height !important;
2525

26+
.mx_NewRoomIntro {
27+
> h2 {
28+
line-height: initial; /* Cancel $irc-line-height */
29+
}
30+
}
31+
2632
.mx_EventTile {
2733
--EventTile_irc_line-padding-block: 1px;
2834

0 commit comments

Comments
 (0)