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

Commit

Permalink
Initialize line-height for room name on IRC layout (#10188)
Browse files Browse the repository at this point in the history
  • Loading branch information
luixxiul committed Mar 14, 2023
1 parent 8cb8cd4 commit 587da5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/e2e/timeline/timeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

Expand Down
6 changes: 6 additions & 0 deletions res/css/views/rooms/_IRCLayout.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 587da5b

Please sign in to comment.