mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Do not show resize controls when a selected shape is blocked
This commit is contained in:
committed by
Alejandro Alonso
parent
18048a4b2e
commit
e8336a401e
@@ -13,6 +13,7 @@
|
|||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
- Fix pan cursor not disabling viewport guides [Github #6985](https://github.com/penpot/penpot/issues/6985)
|
- Fix pan cursor not disabling viewport guides [Github #6985](https://github.com/penpot/penpot/issues/6985)
|
||||||
|
- Fix viewport resize on locked shapes [Taiga #11974](https://tree.taiga.io/project/penpot/issue/11974)
|
||||||
|
|
||||||
## 2.11.0 (Unreleased)
|
## 2.11.0 (Unreleased)
|
||||||
|
|
||||||
|
|||||||
@@ -28,13 +28,29 @@ const setupFileWithAssets = async (workspace) => {
|
|||||||
return { fileId, pageId };
|
return { fileId, pageId };
|
||||||
};
|
};
|
||||||
|
|
||||||
test("Shows the workspace correctly for a blank file", async ({ page }) => {
|
test.describe("Viewport", () => {
|
||||||
const workspace = new WorkspacePage(page);
|
test("Shows the workspace correctly for a blank file", async ({ page }) => {
|
||||||
await workspace.setupEmptyFile();
|
const workspace = new WorkspacePage(page);
|
||||||
|
await workspace.setupEmptyFile();
|
||||||
|
|
||||||
await workspace.goToWorkspace();
|
await workspace.goToWorkspace();
|
||||||
|
|
||||||
await expect(workspace.page).toHaveScreenshot();
|
await expect(workspace.page).toHaveScreenshot();
|
||||||
|
});
|
||||||
|
|
||||||
|
test("User creates a rectangle and locks it", async ({ page }) => {
|
||||||
|
const workspace = new WorkspacePage(page);
|
||||||
|
await workspace.setupEmptyFile(page);
|
||||||
|
await workspace.goToWorkspace();
|
||||||
|
|
||||||
|
await workspace.rectShapeButton.click();
|
||||||
|
await workspace.clickWithDragViewportAt(128, 128, 200, 100);
|
||||||
|
await workspace.clickLeafLayer("Rectangle");
|
||||||
|
|
||||||
|
await page.keyboard.press("Shift+Control+L");
|
||||||
|
|
||||||
|
await expect(workspace.page).toHaveScreenshot();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test.describe("Design tab", () => {
|
test.describe("Design tab", () => {
|
||||||
@@ -145,4 +161,4 @@ test.describe("Palette", () => {
|
|||||||
workspace.palette.getByRole("button", { name: "#7798ff" }),
|
workspace.palette.getByRole("button", { name: "#7798ff" }),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -381,6 +381,7 @@
|
|||||||
(and flip-y (not flip-x)))]
|
(and flip-y (not flip-x)))]
|
||||||
|
|
||||||
(when (and (not ^boolean read-only?)
|
(when (and (not ^boolean read-only?)
|
||||||
|
(not (:blocked shape))
|
||||||
(not (or (= transform-type :move)
|
(not (or (= transform-type :move)
|
||||||
(= transform-type :rotate))))
|
(= transform-type :rotate))))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user