Fix profile resizer to make first character of a line selectable in IRC layout (#10396)
This commit is contained in:
parent
c238e72e47
commit
d8acdd1750
4 changed files with 37 additions and 5 deletions
|
@ -161,8 +161,23 @@ 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_IRCLayout").within(() => {
|
||||
// Check room name line-height is reset
|
||||
cy.get(".mx_NewRoomIntro h2").should("have.css", "line-height", "normal");
|
||||
|
||||
// Check the profile resizer's place
|
||||
// See: _IRCLayout
|
||||
// --RoomView_MessageList-padding = 18px (See: _RoomView.pcss)
|
||||
// --MessageTimestamp-width = $MessageTimestamp_width = 46px (See: _common.pcss)
|
||||
// --icon-width = 14px
|
||||
// --right-padding = 5px
|
||||
// --name-width = 80px
|
||||
// --resizer-width = 15px
|
||||
// --resizer-a11y = 3px
|
||||
// 18px + 46px + 14px + 5px + 80px + 5px - 15px - 3px
|
||||
// = 150px
|
||||
cy.get(".mx_ProfileResizer").should("have.css", "inset-inline-start", "150px");
|
||||
});
|
||||
|
||||
cy.get(".mx_MainSplit").percySnapshotElement("Configured room on IRC layout");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue