Initialize line-height for room name on IRC layout (#10188)

pull/28217/head
Suguru Hirahara 2023-03-14 14:32:12 +00:00 committed by GitHub
parent 8cb8cd4eb1
commit 587da5b7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -161,6 +161,9 @@ describe("Timeline", () => {
"created and configured the room.", "created and configured the room.",
).should("exist"); ).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"); cy.get(".mx_MainSplit").percySnapshotElement("Configured room on IRC layout");
}); });

View File

@ -23,6 +23,12 @@ $irc-line-height: $font-18px;
line-height: $irc-line-height !important; line-height: $irc-line-height !important;
.mx_NewRoomIntro {
> h2 {
line-height: initial; /* Cancel $irc-line-height */
}
}
.mx_EventTile { .mx_EventTile {
--EventTile_irc_line-padding-block: 1px; --EventTile_irc_line-padding-block: 1px;