remove duplicate realtime upload action
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-03-08 16:46:03 +08:00
parent 591cc39e8d
commit d670327f7b

View File

@ -3349,25 +3349,6 @@ export function RealtimeCanvasDialog({
</TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger asChild>
<Button
className={compactToolButtonClass}
onClick={() => uploadInputRef.current?.click()}
size="icon"
type="button"
variant="ghost"
>
<Upload className="h-4.5 w-4.5" />
</Button>
</TooltipTrigger>
<TooltipContent>
<div className="font-medium text-sm">上传图片</div>
<div className="text-muted-foreground text-xs">
添加新的图片图层
</div>
</TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger asChild>
<Button
@ -3472,9 +3453,9 @@ export function RealtimeCanvasDialog({
</div>
</TooltipProvider>
<div className="pointer-events-auto w-full rounded-[24px] border border-border/40 bg-background/80 p-3 shadow-2xl backdrop-blur-md">
<div className="pointer-events-auto w-full rounded-[24px] border border-border/40 bg-background/80 p-4 shadow-2xl backdrop-blur-md">
<Textarea
className="min-h-[48px] resize-none border-0 bg-transparent p-0 text-[15px] leading-6 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"
className="min-h-[56px] resize-none border-0 bg-transparent px-1 py-0.5 text-[15px] leading-7 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"
onBlur={() => scheduleFlush(true, false)}
onChange={(e) => setPrompt(e.target.value)}
onKeyDown={(event) => {
@ -3486,7 +3467,7 @@ export function RealtimeCanvasDialog({
placeholder={FALLBACK_PROMPT}
value={prompt}
/>
<div className="mt-2 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
<div className="mt-3 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
<div className="flex items-center gap-2">
<div
className={cn(