refactor(frontend): keep comment action inline

This commit is contained in:
lizerk 2026-04-13 15:34:59 +03:00
parent b9a6de7b43
commit 92777d7a67

View File

@ -61,25 +61,23 @@ export function CommentComposer({
}
return (
<div className="grid gap-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center">
<div className="flex min-w-0 items-center gap-2">
<input
value={value}
onChange={(event) => onChange(event.target.value)}
placeholder={placeholder}
className="app-input min-w-0 w-full rounded-lg px-3 py-2 text-xs"
className="app-input h-9 w-0 min-w-0 flex-1 rounded-lg px-3 py-2 text-xs"
/>
<div className="flex items-center justify-end">
<button
type="button"
onClick={() => void onSubmit()}
disabled={submitDisabled}
className="app-action-primary inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg disabled:opacity-50"
title="Отправить комментарий"
aria-label="Отправить комментарий"
>
<Send size={14} />
</button>
</div>
<button
type="button"
onClick={() => void onSubmit()}
disabled={submitDisabled}
className="app-action-primary inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-lg disabled:opacity-50"
title="Отправить комментарий"
aria-label="Отправить комментарий"
>
<Send size={14} />
</button>
</div>
);
}