--
This commit is contained in:
parent
46f1540e25
commit
f6a5ca3011
@ -344,6 +344,7 @@ function QuizPreviewLayoutByType({
|
|||||||
<StartPageMobile />
|
<StartPageMobile />
|
||||||
) : (
|
) : (
|
||||||
<Box
|
<Box
|
||||||
|
id="pain"
|
||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: alignType === "left" ? (isMobile ? "column-reverse" : "row") : "row-reverse",
|
flexDirection: alignType === "left" ? (isMobile ? "column-reverse" : "row") : "row-reverse",
|
||||||
@ -351,6 +352,7 @@ function QuizPreviewLayoutByType({
|
|||||||
justifyContent: isMobile ? "flex-end" : undefined,
|
justifyContent: isMobile ? "flex-end" : undefined,
|
||||||
height: "100%",
|
height: "100%",
|
||||||
"&::-webkit-scrollbar": { width: 0 },
|
"&::-webkit-scrollbar": { width: 0 },
|
||||||
|
overflow: "auto"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
@ -391,6 +393,7 @@ function QuizPreviewLayoutByType({
|
|||||||
) : (
|
) : (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
overflow: "auto",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: startpageAlignTypeToJustifyContent[alignType],
|
justifyContent: startpageAlignTypeToJustifyContent[alignType],
|
||||||
@ -442,6 +445,7 @@ function QuizPreviewLayoutByType({
|
|||||||
) : (
|
) : (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
overflow: "auto",
|
||||||
padding: "16px",
|
padding: "16px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
|
@ -43,6 +43,8 @@ export const File = ({ currentQuestion }: FileProps) => {
|
|||||||
const uploadFile = async (file: File | undefined) => {
|
const uploadFile = async (file: File | undefined) => {
|
||||||
if (isSending) return;
|
if (isSending) return;
|
||||||
if (!file) return;
|
if (!file) return;
|
||||||
|
console.log(file.size)
|
||||||
|
console.log(MAX_FILE_SIZE)
|
||||||
if (file.size > MAX_FILE_SIZE) return setModalWarningType("errorSize");
|
if (file.size > MAX_FILE_SIZE) return setModalWarningType("errorSize");
|
||||||
|
|
||||||
const isFileTypeAccepted = ACCEPT_SEND_FILE_TYPES_MAP[currentQuestion.content.type].some(
|
const isFileTypeAccepted = ACCEPT_SEND_FILE_TYPES_MAP[currentQuestion.content.type].some(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { UploadFileType } from "@model/questionTypes/file";
|
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 = {
|
export const UPLOAD_FILE_DESCRIPTIONS_MAP = {
|
||||||
picture: {
|
picture: {
|
||||||
|
@ -7,7 +7,7 @@ import QuizAnswerer from "../lib/components/QuizAnswerer";
|
|||||||
import { ApologyPage } from "../lib/components/ViewPublicationPage/ApologyPage";
|
import { ApologyPage } from "../lib/components/ViewPublicationPage/ApologyPage";
|
||||||
|
|
||||||
// const defaultQuizId = "45ef7f9c-784d-4e58-badb-f6b337f08ba0"; // branching
|
// 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
|
// const defaultQuizId = "ad7f5a87-b833-4f5b-854e-453706ed655c"; // linear
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
|
Loading…
Reference in New Issue
Block a user