From ce07524073178f43ff17b2afa24e3f5dc13d390d Mon Sep 17 00:00:00 2001 From: Tamara Date: Wed, 17 Apr 2024 03:02:08 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BA=D1=80=D0=BE=D0=BB=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewPublicationPage/Question.tsx | 4 ++++ .../ViewPublicationPage/ResultForm.tsx | 4 ++++ .../StartPageDesktop.tsx | 23 ++++++++++++++++--- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/lib/components/ViewPublicationPage/Question.tsx b/lib/components/ViewPublicationPage/Question.tsx index f2ae2ad..c26ffea 100644 --- a/lib/components/ViewPublicationPage/Question.tsx +++ b/lib/components/ViewPublicationPage/Question.tsx @@ -71,6 +71,10 @@ export const Question = ({ overflow: "auto", width: "100%", flexGrow: 1, + scrollbarWidth: "none", + "&::-webkit-scrollbar": { + width: 0, + }, }} > { ? "transparent" : "linear-gradient(90deg,#272626, transparent)" : theme.palette.background.default, + scrollbarWidth: "none", + "&::-webkit-scrollbar": { + width: 0, + }, }} > @@ -60,6 +63,10 @@ const StandartLayout = ({ settings.cfg.design && !quizThemes[settings.cfg.theme].isLight ? "linear-gradient(90deg,#272626,transparent)" : null, + scrollbarWidth: "none", + "&::-webkit-scrollbar": { + width: 0, + }, }} > {quizHeaderBlock} @@ -90,7 +97,10 @@ const ExpandedLayout = ({ : alignType === "left" ? "0" : "0 0 0 auto", - "&::-webkit-scrollbar": { width: 0 }, + scrollbarWidth: "none", + "&::-webkit-scrollbar": { + width: 0, + }, overflowY: "auto", }} > @@ -105,6 +115,10 @@ const ExpandedLayout = ({ alignItems: alignType === "center" ? "center" : "start", borderRight: alignType === "left" ? "1px solid #9A9AAF80" : null, borderLeft: alignType === "right" ? "1px solid #9A9AAF80" : null, + scrollbarWidth: "none", + "&::-webkit-scrollbar": { + width: 0, + }, }} > {quizHeaderBlock} @@ -148,7 +162,10 @@ const CenteredLayout = ({ backgroundImage: settings.cfg.design ? `url(${DESIGN_LIST[settings.cfg.theme]})` : null, - "&::-webkit-scrollbar": { width: 0 }, + scrollbarWidth: "none", + "&::-webkit-scrollbar": { + width: 0, + }, overflowY: "auto", }} >