добавлен скроллбар в редактирование вопросов
This commit is contained in:
parent
2e78e30e3a
commit
bb3844c412
@ -10,6 +10,7 @@ import { updateQuiz } from "@root/quizes/actions";
|
|||||||
import { useCurrentQuiz } from "@root/quizes/hooks";
|
import { useCurrentQuiz } from "@root/quizes/hooks";
|
||||||
import type { DesignItem } from "./DesignGroup";
|
import type { DesignItem } from "./DesignGroup";
|
||||||
import { DesignGroup } from "./DesignGroup";
|
import { DesignGroup } from "./DesignGroup";
|
||||||
|
import pinkScrollbar from "@utils/pinkScrollbar";
|
||||||
|
|
||||||
import Desgin1 from "@icons/designs/smallSize/design1.jpg";
|
import Desgin1 from "@icons/designs/smallSize/design1.jpg";
|
||||||
import Desgin2 from "@icons/designs/smallSize/design2.jpg";
|
import Desgin2 from "@icons/designs/smallSize/design2.jpg";
|
||||||
@ -133,15 +134,7 @@ export const DesignFilling = ({
|
|||||||
padding: "20px",
|
padding: "20px",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
scrollbarWidth: "auto",
|
...pinkScrollbar(theme)
|
||||||
"&::-webkit-scrollbar": {
|
|
||||||
display: "block",
|
|
||||||
width: "8px",
|
|
||||||
},
|
|
||||||
"&::-webkit-scrollbar-thumb": {
|
|
||||||
backgroundColor: theme.palette.brightPurple.main,
|
|
||||||
borderRadius: "4px",
|
|
||||||
},
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box sx={{ display: "flex", gap: "20px", flexWrap: "wrap" }}>
|
<Box sx={{ display: "flex", gap: "20px", flexWrap: "wrap" }}>
|
||||||
@ -199,3 +192,4 @@ export const DesignFilling = ({
|
|||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ import { ModalInfoWhyCantCreate } from "./ModalInfoWhyCantCreate";
|
|||||||
import { ConfirmLeaveModal } from "./ConfirmLeaveModal";
|
import { ConfirmLeaveModal } from "./ConfirmLeaveModal";
|
||||||
import { checkQuestionHint } from "@utils/checkQuestionHint";
|
import { checkQuestionHint } from "@utils/checkQuestionHint";
|
||||||
import AmoTokenExpiredDialog from "../IntegrationsPage/IntegrationsModal/Amo/AmoTokenExpiredDialog";
|
import AmoTokenExpiredDialog from "../IntegrationsPage/IntegrationsModal/Amo/AmoTokenExpiredDialog";
|
||||||
import { useAmoAccount } from "@/api/integration";
|
import pinkScrollbar from "@utils/pinkScrollbar";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
openBranchingPage: boolean;
|
openBranchingPage: boolean;
|
||||||
@ -121,6 +121,7 @@ export default function EditPage({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
|
id="lol"
|
||||||
onScroll={onScroll}
|
onScroll={onScroll}
|
||||||
ref={mainBlock}
|
ref={mainBlock}
|
||||||
sx={{
|
sx={{
|
||||||
@ -140,6 +141,7 @@ export default function EditPage({
|
|||||||
boxSizing: "border-box",
|
boxSizing: "border-box",
|
||||||
transition: "transform 0.3s",
|
transition: "transform 0.3s",
|
||||||
paddingBottom: scrollDown && isMobile ? "120px" : undefined,
|
paddingBottom: scrollDown && isMobile ? "120px" : undefined,
|
||||||
|
...pinkScrollbar(theme)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{quizConfig && (
|
{quizConfig && (
|
||||||
|
|||||||
13
src/utils/pinkScrollbar.ts
Normal file
13
src/utils/pinkScrollbar.ts
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { Theme } from "@mui/material";
|
||||||
|
|
||||||
|
export default (theme: Theme) => ({
|
||||||
|
scrollbarWidth: "auto",
|
||||||
|
"&::-webkit-scrollbar": {
|
||||||
|
display: "block",
|
||||||
|
width: "8px",
|
||||||
|
},
|
||||||
|
"&::-webkit-scrollbar-thumb": {
|
||||||
|
backgroundColor: theme.palette.brightPurple.main,
|
||||||
|
borderRadius: "4px",
|
||||||
|
}
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue
Block a user