mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 17:29:45 +00:00
fix(inbox): align composer send and template buttons with the textarea
The \"Type '/' for quick replies\" hint used to live inside the textarea's flex-1 column. With items-end on the parent row, the column's height grew by the hint's line box and the buttons aligned to *that* bottom — sitting one row below the textarea on screen. Move the hint out to a sibling of the flex row. The row now only measures the textarea, items-end aligns the buttons level with the textarea's bottom, and the hint drops neatly below with a pl-11 indent so it stays aligned under the textarea's left edge (w-9 button + gap-2 = 44px). Verified structurally via source; the /inbox route itself requires auth so the preview couldn't exercise the rendered UI. Typecheck clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1707aeafb6
commit
a90ae1d991
@ -94,7 +94,6 @@ export function MessageComposer({
|
||||
<LayoutTemplate className="h-4 w-4" />
|
||||
</Button>
|
||||
|
||||
<div className="relative flex-1">
|
||||
<textarea
|
||||
ref={textareaRef}
|
||||
value={text}
|
||||
@ -108,14 +107,10 @@ export function MessageComposer({
|
||||
disabled={sessionExpired}
|
||||
rows={1}
|
||||
className={cn(
|
||||
"w-full resize-none rounded-xl border border-slate-700 bg-slate-800 px-4 py-2.5 text-sm text-white placeholder-slate-500 outline-none transition-colors focus:border-emerald-500/50",
|
||||
"flex-1 resize-none rounded-xl border border-slate-700 bg-slate-800 px-4 py-2.5 text-sm text-white placeholder-slate-500 outline-none transition-colors focus:border-emerald-500/50",
|
||||
sessionExpired && "cursor-not-allowed opacity-50"
|
||||
)}
|
||||
/>
|
||||
<p className="mt-1 text-[10px] text-slate-600">
|
||||
Type '/' for quick replies
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<Button
|
||||
size="sm"
|
||||
@ -126,6 +121,13 @@ export function MessageComposer({
|
||||
<Send className="h-4 w-4" />
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{/* Hint sits outside the flex row so its height doesn't push
|
||||
`items-end` buttons below the textarea. Indented to line up
|
||||
under the textarea left edge (w-9 button + gap-2 = 44px). */}
|
||||
<p className="mt-1 pl-11 text-[10px] text-slate-600">
|
||||
Type '/' for quick replies
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user