mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
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:
@@ -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", () => {
|
describe("download", () => {
|
||||||
|
|||||||
@@ -111,10 +111,6 @@ limitations under the License.
|
|||||||
.mx_EventTile_line {
|
.mx_EventTile_line {
|
||||||
margin-inline-end: 0;
|
margin-inline-end: 0;
|
||||||
padding-inline-start: 0;
|
padding-inline-start: 0;
|
||||||
|
|
||||||
.mx_EventTile_selected & {
|
|
||||||
padding-inline-start: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user