карточки квизов пишут последние 4 цифры id при пустом имени, текст в нодах не переполняет ноду

This commit is contained in:
Nastya 2024-01-09 04:55:10 +03:00
parent c7d5320771
commit 7f832e5fbd
2 changed files with 5 additions and 3 deletions

@ -14,7 +14,9 @@ export const stylesheet: Stylesheet[] = [
"text-halign": "center", "text-halign": "center",
"text-valign": "center", "text-valign": "center",
"text-wrap": "wrap", "text-wrap": "wrap",
"text-max-width": "80", "text-max-width": "130px",
"text-overflow-wrap": "anywhere",
}, },
}, },
{ {

@ -98,8 +98,8 @@ export default function QuizCard({
> >
{quiz.name.length === 0 || quiz.name === " " {quiz.name.length === 0 || quiz.name === " "
? quiz.config.type === "form" ? quiz.config.type === "form"
? "Form " + quiz.backendId ? "Form " + quiz.backendId.toString().slice(-4).replace(/^0/, "1")
: "Quiz " + quiz.backendId : "Quiz " + quiz.backendId.toString().slice(-4).replace(/^0/, "1")
: quiz.name} : quiz.name}
</Typography> </Typography>
<Box <Box