diff --git a/cypress/e2e/right-panel/file-panel.spec.ts b/cypress/e2e/right-panel/file-panel.spec.ts index 06196398f8..619b40a7cf 100644 --- a/cypress/e2e/right-panel/file-panel.spec.ts +++ b/cypress/e2e/right-panel/file-panel.spec.ts @@ -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", () => { diff --git a/res/css/structures/_FilePanel.pcss b/res/css/structures/_FilePanel.pcss index b7fbf23d95..f04dc3f8dc 100644 --- a/res/css/structures/_FilePanel.pcss +++ b/res/css/structures/_FilePanel.pcss @@ -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; - } } }