format
This commit is contained in:
@@ -440,15 +440,18 @@ export function Thread() {
|
|||||||
|
|
||||||
<ScrollToBottom className="animate-in fade-in-0 zoom-in-95 absolute bottom-full left-1/2 mb-4 -translate-x-1/2" />
|
<ScrollToBottom className="animate-in fade-in-0 zoom-in-95 absolute bottom-full left-1/2 mb-4 -translate-x-1/2" />
|
||||||
|
|
||||||
<div ref={dropRef} className="bg-muted relative z-10 mx-auto mb-8 w-full max-w-3xl rounded-2xl border shadow-xs">
|
<div
|
||||||
|
ref={dropRef}
|
||||||
|
className="bg-muted relative z-10 mx-auto mb-8 w-full max-w-3xl rounded-2xl border shadow-xs"
|
||||||
|
>
|
||||||
<form
|
<form
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
className="mx-auto grid max-w-3xl grid-rows-[1fr_auto] gap-2"
|
className="mx-auto grid max-w-3xl grid-rows-[1fr_auto] gap-2"
|
||||||
>
|
>
|
||||||
<ContentBlocksPreview
|
<ContentBlocksPreview
|
||||||
blocks={contentBlocks}
|
blocks={contentBlocks}
|
||||||
onRemove={removeBlock}
|
onRemove={removeBlock}
|
||||||
/>
|
/>
|
||||||
<textarea
|
<textarea
|
||||||
value={input}
|
value={input}
|
||||||
onChange={(e) => setInput(e.target.value)}
|
onChange={(e) => setInput(e.target.value)}
|
||||||
@@ -514,7 +517,7 @@ export function Thread() {
|
|||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
className="shadow-md transition-all ml-auto"
|
className="ml-auto shadow-md transition-all"
|
||||||
disabled={
|
disabled={
|
||||||
isLoading ||
|
isLoading ||
|
||||||
(!input.trim() && contentBlocks.length === 0)
|
(!input.trim() && contentBlocks.length === 0)
|
||||||
@@ -548,4 +551,4 @@ export function Thread() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user