Skip to content

Commit

Permalink
#6661 Toolbox - Subitems - An arrow action is shifted to the bottom
Browse files Browse the repository at this point in the history
Fixes #6661
  • Loading branch information
novikov82 committed Feb 28, 2025
1 parent c4f40b0 commit 721d1cf
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
.svc-toolbox__item-banner {
top: 50%;
}
.svc-toolbox__item-submenu-button {
top: calc(var(--ctr-toolbox-item-padding-top, var(--sjs-spacing-x1)));
}
}
}
.svc-toolbox__tool-content {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions visualRegressionTests/tests/designer/toolbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,34 @@ test("Left toolbox", async (t) => {
});
});

test("Left toolbox - subitems in first item", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await changeToolboxScrolling(false);
await changeToolboxSearchEnabled(false);
await setAllowEditSurveyTitle(false);
await setShowAddQuestionButton(false);

await ClientFunction(() => {
window["creator"].toolbox.removeItem("radiogroup");
})();

const toolboxItem = Selector(".svc-toolbox__item");
const toolboxElement = Selector(".svc-toolbox");

await setJSON({
showQuestionNumbers: "on", pages: [{ name: "page1" }]
});
await t.resizeWindow(2560, 1440);
await setShowSidebar(false);
await takeElementScreenshot("toolbox-left-subitems-first.png", toolboxElement, t, comparer);

await t.hover(toolboxItem);
await takeElementScreenshot("toolbox-left-hover-item-subitems-first.png", toolboxElement, t, comparer);

await t.resizeWindow(2560, 1440);
});
});

test("Right toolbox", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await changeToolboxScrolling(false);
Expand Down

0 comments on commit 721d1cf

Please sign in to comment.