From 611415ed28224fb0343362ac54ee0f0b33194cc9 Mon Sep 17 00:00:00 2001 From: OlgaLarina Date: Wed, 31 Jan 2024 18:04:15 +0300 Subject: [PATCH 1/2] fix scroll view after chrome update version 121 fix for FF --- src/defaultV2-theme/defaultV2.fontless.scss | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/defaultV2-theme/defaultV2.fontless.scss b/src/defaultV2-theme/defaultV2.fontless.scss index f1237c9ded..347dbaeccd 100644 --- a/src/defaultV2-theme/defaultV2.fontless.scss +++ b/src/defaultV2-theme/defaultV2.fontless.scss @@ -72,7 +72,7 @@ body { position: relative; } - * { + @-moz-document url-prefix() { scrollbar-width: thin; scrollbar-color: $border transparent; } @@ -113,7 +113,7 @@ body { overflow: auto; position: static; - * { + @-moz-document url-prefix() { scrollbar-width: thin; scrollbar-color: $border transparent; } @@ -162,11 +162,15 @@ body { } } -.sv-popup { - .sv-popup__scrolling-content { +@-moz-document url-prefix() { + .sv-popup .sv-popup__scrolling-content { scrollbar-width: thin; scrollbar-color: $border transparent; + } +} +.sv-popup { + .sv-popup__scrolling-content { *, & { &::-webkit-scrollbar { From 664e26729c6f79bc82481e40726c80bcf68615c8 Mon Sep 17 00:00:00 2001 From: OlgaLarina Date: Wed, 31 Jan 2024 18:36:26 +0300 Subject: [PATCH 2/2] update test --- testCafe/survey/surveyWidth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testCafe/survey/surveyWidth.ts b/testCafe/survey/surveyWidth.ts index 22c8f1bc2d..9324489aff 100644 --- a/testCafe/survey/surveyWidth.ts +++ b/testCafe/survey/surveyWidth.ts @@ -26,10 +26,10 @@ frameworks.forEach((framework) => { test("Check question width", async (t) => { await t - .expect(Selector(".sv_row > div").getStyleProperty("min-width")).eql("min(100% + 0px, 0% + 300px)"); + .expect(Selector(".sv_row > div").getStyleProperty("min-width")).eql("min(100%, 300px)"); await ClientFunction(() => { window["survey"].getAllQuestions()[0].minWidth = "200px"; })(); await t - .expect(Selector(".sv_row > div").getStyleProperty("min-width")).eql("min(100% + 0px, 0% + 200px)"); + .expect(Selector(".sv_row > div").getStyleProperty("min-width")).eql("min(100%, 200px)"); }); }); \ No newline at end of file