fix: title
This commit is contained in:
parent
e85df285a3
commit
45a33c1f91
@ -41,7 +41,7 @@ const CONDITIONS = [
|
|||||||
export default function BranchingQuestions({
|
export default function BranchingQuestions({
|
||||||
totalIndex,
|
totalIndex,
|
||||||
}: BranchingQuestionsProps) {
|
}: BranchingQuestionsProps) {
|
||||||
const [title, setTitle] = useState<string>("Заголовок вопроса");
|
const [title, setTitle] = useState<string>("");
|
||||||
const [titleInputWidth, setTitleInputWidth] = useState<number>(0);
|
const [titleInputWidth, setTitleInputWidth] = useState<number>(0);
|
||||||
const quizId = Number(useParams().quizId);
|
const quizId = Number(useParams().quizId);
|
||||||
const { openedModalSettings, listQuestions } = questionStore();
|
const { openedModalSettings, listQuestions } = questionStore();
|
||||||
@ -105,15 +105,18 @@ export default function BranchingQuestions({
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={title}
|
value={title}
|
||||||
|
placeholder="Заголовок вопроса"
|
||||||
onChange={({ target }) => setTitle(target.value)}
|
onChange={({ target }) => setTitle(target.value)}
|
||||||
style={{
|
style={{
|
||||||
width: titleInputWidth,
|
width: titleInputWidth ? titleInputWidth : 170,
|
||||||
outline: "none",
|
outline: "none",
|
||||||
background: "transparent",
|
background: "transparent",
|
||||||
border: "none",
|
border: "none",
|
||||||
fontSize: "18px",
|
fontSize: "18px",
|
||||||
minWidth: "160px",
|
minWidth: "50px",
|
||||||
maxWidth: "500px",
|
maxWidth: "500px",
|
||||||
|
fontFamily: "Rubik",
|
||||||
|
transition: ".2s",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
Loading…
Reference in New Issue
Block a user