Skip to content

Commit 8a93a9c

Browse files
authored
Merge pull request #17 from ut-code/chatbox
chatboxのスタイル変更
2 parents c54e04d + a05ae1e commit 8a93a9c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

app/[docs_id]/chatForm.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,18 @@ export function ChatForm({ documentContent }: { documentContent: string }) {
3131
return (
3232
<>
3333
{isFormVisible && (
34-
<form className="border border-2 border-secondary shadow-xl p-6 rounded-lg bg-base-100" style={{width:"100%", textAlign:"center", boxShadow:"-moz-initial"}} onSubmit={handleSubmit}>
35-
<h2 className="text-xl font-bold mb-4 text-left relative -top-2 font-mono h-2">
36-
AIへ質問
37-
</h2>
38-
<div className="input-area" style={{height:"80px"}}>
34+
<form className="border border-2 border-secondary shadow-md rounded-lg bg-base-100" style={{width:"100%", textAlign:"center", boxShadow:"-moz-initial"}} onSubmit={handleSubmit}>
35+
<div className="input-area">
3936
<textarea
40-
className="textarea textarea-white textarea-md"
37+
className="textarea textarea-ghost textarea-md rounded-lg"
4138
placeholder="質問を入力してください"
42-
style={{width: "100%", height: "110px", resize: "none"}}
39+
style={{width: "100%", height: "110px", resize: "none", outlineStyle: "none"}}
4340
value={inputValue}
4441
onChange={(e) => setInputValue(e.target.value)}
4542
disabled={isLoading}
4643
></textarea>
4744
</div>
48-
<br />
49-
<div className="controls" style={{position:"relative", top:"22px", display:"flex", alignItems:"center", justifyContent:"space-between"}}>
45+
<div className="controls" style={{margin:"10px", display:"flex", alignItems:"center", justifyContent:"space-between"}}>
5046
<div className="left-icons">
5147
<button
5248
className="btn btn-soft btn-secondary rounded-full"
@@ -61,7 +57,6 @@ export function ChatForm({ documentContent }: { documentContent: string }) {
6157
type="submit"
6258
className="btn btn-soft btn-circle btn-accent border-2 border-accent rounded-full"
6359
title="送信"
64-
style={{marginTop:"10px"}}
6560
disabled={isLoading}
6661
>
6762
<span className="icon"></span>

0 commit comments

Comments
 (0)