Skip to content

Commit

Permalink
resolve #7387 Huge overlay shift on the mobile. (#7394)
Browse files Browse the repository at this point in the history
Co-authored-by: OlgaLarina <[email protected]>
  • Loading branch information
OlgaLarina and OlgaLarina authored Nov 22, 2023
1 parent f4bcf8a commit cddc7dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/defaultV2-theme/blocks/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
}
}

.sd-root-modern--mobile .sv-header__overlap {
margin-bottom: calcSize(-5);
padding-bottom: calcSize(2);
}

.sv-header__content {
padding: calcSize(5);
box-sizing: border-box;
Expand Down
6 changes: 6 additions & 0 deletions visualRegressionTests/tests/defaultV2/advancedHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ frameworks.forEach(framework => {
});
})();
await takeElementScreenshot("survey-advanced-header-with-overlap.png", Selector(".sd-root-modern"), t, comparer);

await t.resizeWindow(500, 600);
await ClientFunction(() => {
(<any>window).survey.setIsMobile(true);
})();
await takeElementScreenshot("survey-advanced-header-mobile-with-overlap.png", Selector(".sd-root-modern"), t, comparer);
});
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cddc7dd

Please sign in to comment.