💄 make the chat box less cramped
This commit is contained in:
@@ -491,11 +491,18 @@
|
|||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Input row: paperclip + textarea + send ─── */
|
/* ── Input row: textarea on top, buttons below ─── */
|
||||||
.chat-input-row {
|
.chat-input-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-input-actions {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-paperclip-btn {
|
.chat-paperclip-btn {
|
||||||
@@ -561,6 +568,7 @@
|
|||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
resize: none;
|
resize: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
overflow: hidden;
|
||||||
transition: border-color 0.15s;
|
transition: border-color 0.15s;
|
||||||
min-height: 36px;
|
min-height: 36px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -177,15 +177,6 @@ export function ChatInput({ onSend, onAttachmentsChange, disabled }: Props): JSX
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="chat-input-row">
|
<div className="chat-input-row">
|
||||||
<button
|
|
||||||
className="chat-paperclip-btn"
|
|
||||||
onClick={handleAttach}
|
|
||||||
disabled={disabled}
|
|
||||||
title="Attach file (image, text, PDF)"
|
|
||||||
aria-label="Attach file"
|
|
||||||
>
|
|
||||||
⌁
|
|
||||||
</button>
|
|
||||||
<textarea
|
<textarea
|
||||||
ref={textareaRef}
|
ref={textareaRef}
|
||||||
className="chat-textarea"
|
className="chat-textarea"
|
||||||
@@ -198,6 +189,16 @@ export function ChatInput({ onSend, onAttachmentsChange, disabled }: Props): JSX
|
|||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
rows={1}
|
rows={1}
|
||||||
/>
|
/>
|
||||||
|
<div className="chat-input-actions">
|
||||||
|
<button
|
||||||
|
className="chat-paperclip-btn"
|
||||||
|
onClick={handleAttach}
|
||||||
|
disabled={disabled}
|
||||||
|
title="Attach file (image, text, PDF)"
|
||||||
|
aria-label="Attach file"
|
||||||
|
>
|
||||||
|
⌁
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
className="chat-send-btn"
|
className="chat-send-btn"
|
||||||
onClick={submit}
|
onClick={submit}
|
||||||
@@ -207,6 +208,7 @@ export function ChatInput({ onSend, onAttachmentsChange, disabled }: Props): JSX
|
|||||||
↑
|
↑
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{menuPos && (
|
{menuPos && (
|
||||||
<ContextMenu
|
<ContextMenu
|
||||||
x={menuPos.x}
|
x={menuPos.x}
|
||||||
|
|||||||
Reference in New Issue
Block a user