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