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

Fix space lock icon size #9854

Merged
merged 7 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cypress/e2e/spaces/spaces.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ describe("Spaces", () => {
cy.stopSynapse(synapse);
});

it("should allow user to create public space", () => {
openSpaceCreateMenu().within(() => {
it.only("should allow user to create public space", () => {
openSpaceCreateMenu();
cy.get("#mx_ContextualMenu_Container").percySnapshotElement("Space create menu");
cy.get(".mx_SpaceCreateMenu_wrapper .mx_ContextualMenu").within(() => {
cy.get(".mx_SpaceCreateMenuType_public").click();
cy.get('.mx_SpaceBasicSettings_avatarContainer input[type="file"]').selectFile(
"cypress/fixtures/riot.png",
Expand Down
6 changes: 3 additions & 3 deletions res/css/structures/_SpaceRoomView.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ $SpaceRoomViewInnerWidth: 428px;
&::before {
position: absolute;
content: "";
width: 32px;
height: 32px;
top: 24px;
width: 24px;
height: 24px;
top: 27px;
left: 20px;
mask-position: center;
mask-repeat: no-repeat;
Expand Down
2 changes: 2 additions & 0 deletions res/css/views/dialogs/_JoinRuleDropdown.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ limitations under the License.
}

.mx_JoinRuleDropdown_invite::before {
box-sizing: border-box;
mask-image: url("$(res)/img/element-icons/lock.svg");
mask-size: contain;
padding: 1px;
}

.mx_JoinRuleDropdown_public::before {
Expand Down
2 changes: 2 additions & 0 deletions res/css/views/spaces/_SpaceCreateMenu.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ $spacePanelWidth: 68px;
.mx_SpaceCreateMenuType_public::before {
mask-image: url("$(res)/img/globe.svg");
}

.mx_SpaceCreateMenuType_private::before {
mask-image: url("$(res)/img/element-icons/lock.svg");
mask-size: 18px;
}

.mx_SpaceCreateMenu_back {
Expand Down