File tree Expand file tree Collapse file tree 1 file changed +34
-44
lines changed
Expand file tree Collapse file tree 1 file changed +34
-44
lines changed Original file line number Diff line number Diff line change @@ -113,69 +113,59 @@ export function ChatForm({
113113 } }
114114 onSubmit = { handleSubmit }
115115 >
116- < div className = "input-area" >
117- < textarea
118- className = "textarea textarea-ghost textarea-md rounded-lg"
119- placeholder = {
120- "質問を入力してください" +
121- ( exampleData
122- ? ` (例:「${ exampleData [ Math . floor ( exampleChoice * exampleData . length ) ] } 」)`
123- : "" )
124- }
125- style = { {
126- width : "100%" ,
127- height : "110px" ,
128- resize : "none" ,
129- outlineStyle : "none" ,
130- } }
131- value = { inputValue }
132- onChange = { ( e ) => setInputValue ( e . target . value ) }
133- disabled = { isLoading }
134- > </ textarea >
135- </ div >
116+ < textarea
117+ className = "textarea textarea-ghost textarea-md rounded-lg"
118+ placeholder = {
119+ "質問を入力してください" +
120+ ( exampleData
121+ ? ` (例:「${ exampleData [ Math . floor ( exampleChoice * exampleData . length ) ] } 」)`
122+ : "" )
123+ }
124+ style = { {
125+ width : "100%" ,
126+ height : "110px" ,
127+ resize : "none" ,
128+ outlineStyle : "none" ,
129+ } }
130+ value = { inputValue }
131+ onChange = { ( e ) => setInputValue ( e . target . value ) }
132+ disabled = { isLoading }
133+ > </ textarea >
136134 < div
137- className = "controls"
138135 style = { {
139136 margin : "10px" ,
140137 display : "flex" ,
141138 alignItems : "center" ,
142139 justifyContent : "space-between" ,
143140 } }
144141 >
145- < div className = "left-icons" >
146- < button
147- className = "btn btn-soft btn-secondary rounded-full"
148- onClick = { close }
149- type = "button"
150- >
151- 閉じる
152- </ button >
153- </ div >
142+ < button
143+ className = "btn btn-soft btn-secondary rounded-full"
144+ onClick = { close }
145+ type = "button"
146+ >
147+ 閉じる
148+ </ button >
154149 { errorMessage && (
155150 < div
156- className = "error-message "
151+ className = "text- error text-left text-nowrap overflow-hidden text-ellipsis "
157152 style = { {
158- color : "red" ,
159- fontSize : "14px" ,
160153 marginLeft : "10px" ,
161154 marginRight : "10px" ,
162155 flex : 1 ,
163- textAlign : "center" ,
164156 } }
165157 >
166158 { errorMessage }
167159 </ div >
168160 ) }
169- < div className = "right-controls" >
170- < button
171- type = "submit"
172- className = "btn btn-soft btn-circle btn-accent border-2 border-accent rounded-full"
173- title = "送信"
174- disabled = { isLoading }
175- >
176- < span className = "icon" > ➤</ span >
177- </ button >
178- </ div >
161+ < button
162+ type = "submit"
163+ className = "btn btn-soft btn-circle btn-accent border-2 border-accent rounded-full"
164+ title = "送信"
165+ disabled = { isLoading }
166+ >
167+ < span className = "icon" > ➤</ span >
168+ </ button >
179169 </ div >
180170 </ form >
181171 ) ;
You can’t perform that action at this time.
0 commit comments