Skip to content

Commit 1863817

Browse files
committed
chatboxのスタイル変更
1 parent c54e04d commit 1863817

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

app/[docs_id]/chatForm.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,19 @@ 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" style={{height:"90px", margin:"10px"}}>
3936
<textarea
40-
className="textarea textarea-white textarea-md"
37+
className="textarea-ghost textarea-white textarea-md"
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>
4845
<br />
49-
<div className="controls" style={{position:"relative", top:"22px", display:"flex", alignItems:"center", justifyContent:"space-between"}}>
46+
<div className="controls" style={{display:"flex", alignItems:"center", justifyContent:"space-between"}}>
5047
<div className="left-icons">
5148
<button
5249
className="btn btn-soft btn-secondary rounded-full"
@@ -61,7 +58,6 @@ export function ChatForm({ documentContent }: { documentContent: string }) {
6158
type="submit"
6259
className="btn btn-soft btn-circle btn-accent border-2 border-accent rounded-full"
6360
title="送信"
64-
style={{marginTop:"10px"}}
6561
disabled={isLoading}
6662
>
6763
<span className="icon"></span>

0 commit comments

Comments
 (0)