This commit is contained in:
Nastya 2024-02-17 03:14:28 +03:00
parent 46f1540e25
commit f6a5ca3011
4 changed files with 8 additions and 2 deletions

@ -344,6 +344,7 @@ function QuizPreviewLayoutByType({
<StartPageMobile />
) : (
<Box
id="pain"
sx={{
display: "flex",
flexDirection: alignType === "left" ? (isMobile ? "column-reverse" : "row") : "row-reverse",
@ -351,6 +352,7 @@ function QuizPreviewLayoutByType({
justifyContent: isMobile ? "flex-end" : undefined,
height: "100%",
"&::-webkit-scrollbar": { width: 0 },
overflow: "auto"
}}
>
<Box
@ -391,6 +393,7 @@ function QuizPreviewLayoutByType({
) : (
<Box
sx={{
overflow: "auto",
position: "relative",
display: "flex",
justifyContent: startpageAlignTypeToJustifyContent[alignType],
@ -442,6 +445,7 @@ function QuizPreviewLayoutByType({
) : (
<Box
sx={{
overflow: "auto",
padding: "16px",
display: "flex",
flexDirection: "column",

@ -43,6 +43,8 @@ export const File = ({ currentQuestion }: FileProps) => {
const uploadFile = async (file: File | undefined) => {
if (isSending) return;
if (!file) return;
console.log(file.size)
console.log(MAX_FILE_SIZE)
if (file.size > MAX_FILE_SIZE) return setModalWarningType("errorSize");
const isFileTypeAccepted = ACCEPT_SEND_FILE_TYPES_MAP[currentQuestion.content.type].some(

@ -1,7 +1,7 @@
import { UploadFileType } from "@model/questionTypes/file";
export const MAX_FILE_SIZE = 5 * 2 ** 20;
export const MAX_FILE_SIZE = 419430400;
export const UPLOAD_FILE_DESCRIPTIONS_MAP = {
picture: {

@ -7,7 +7,7 @@ import QuizAnswerer from "../lib/components/QuizAnswerer";
import { ApologyPage } from "../lib/components/ViewPublicationPage/ApologyPage";
// const defaultQuizId = "45ef7f9c-784d-4e58-badb-f6b337f08ba0"; // branching
const defaultQuizId = "d354ba89-0bd3-4d5e-a8ce-88d6f387f3fc"; //looooong header
const defaultQuizId = "cde381db-8ccb-402c-b55f-2c814be9bf25"; //looooong header
// const defaultQuizId = "ad7f5a87-b833-4f5b-854e-453706ed655c"; // linear
export default function App() {