Remove an obsolete CSS declaration and add a test to file-panel.spec.ts (#10498)

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
Suguru Hirahara 2023-04-04 17:38:05 +00:00 committed by GitHub
parent 7a250f41ac
commit a340387374
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View file

@ -210,6 +210,22 @@ describe("FilePanel", () => {
});
});
});
it("should not add inline padding to a tile when it is selected with right click", () => {
// Upload a file
uploadFile("cypress/fixtures/1sec.ogg");
cy.get(".mx_FilePanel .mx_RoomView_MessageList").within(() => {
// Wait until the spinner of the audio player vanishes
cy.get(".mx_InlineSpinner").should("not.exist");
// Right click the uploaded file to select the tile
cy.get(".mx_EventTile").rightclick();
// Assert that inline padding is not applied
cy.get(".mx_EventTile_selected .mx_EventTile_line").should("have.css", "padding-inline", "0px");
});
});
});
describe("download", () => {

View file

@ -111,10 +111,6 @@ limitations under the License.
.mx_EventTile_line {
margin-inline-end: 0;
padding-inline-start: 0;
.mx_EventTile_selected & {
padding-inline-start: 0;
}
}
}