diff --git a/src/components/SharedMisc/AdvancedDropdown.tsx b/src/components/SharedMisc/AdvancedDropdown.tsx index 867e75e..d49f74a 100644 --- a/src/components/SharedMisc/AdvancedDropdown.tsx +++ b/src/components/SharedMisc/AdvancedDropdown.tsx @@ -45,6 +45,7 @@ const AdvancedDropdown: React.FC> = ({ maxMenuHeight={400} className={css` aria-label: breed-selection; + width: 99%; `} /> // diff --git a/src/components/Survey/SurveyExerciseItem.tsx b/src/components/Survey/SurveyExerciseItem.tsx index 3b81530..f0b2840 100644 --- a/src/components/Survey/SurveyExerciseItem.tsx +++ b/src/components/Survey/SurveyExerciseItem.tsx @@ -1,6 +1,8 @@ import { css } from "@emotion/css" import styled from "@emotion/styled" +import TextAreaField from "../../shared-module/components/InputFields/TextAreaField" +import TextField from "../../shared-module/components/InputFields/TextField" import { AnswerType, SurveyItem } from "../../util/spec-types/privateSpec" import MarkdownText from "../MarkdownText" import AdvancedDropdown from "../SharedMisc/AdvancedDropdown" @@ -50,7 +52,7 @@ const SurveyExerciseitem: React.FC> = ({ case AnswerType.Number: { return (
- > = ({ className={css` border: 1px solid #e0e0e0; border-radius: 2px; + max-width: 10em; `} />
@@ -70,18 +73,20 @@ const SurveyExerciseitem: React.FC> = ({ case AnswerType.Text: { return (
- { updateAnswer(item.id, e.target.value) }} required disabled={disabled} className={css` - border: 1px solid #e0e0e0; - border-radius: 2px; + textarea { + width: 99%; + max-height: 200px; + } `} />