fix(ui): center image params popover and remove 4k sparkles icon
This commit is contained in:
parent
477fec4efa
commit
d6637135f1
@ -254,12 +254,11 @@ export function ImageParamsBar({
|
||||
<span className="mx-1.5 h-3 w-px bg-[#cfd5de]" />
|
||||
<span className="inline-flex min-w-0 items-center gap-0.5 truncate">
|
||||
{sizeLabel}
|
||||
{params.imageSize === "4K" ? <Sparkles className="h-3 w-3 text-[#0ea5e9]" /> : null}
|
||||
</span>
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent
|
||||
align="start"
|
||||
align="center"
|
||||
side="top"
|
||||
sideOffset={10}
|
||||
className="w-[312px] max-w-[calc(100vw-24px)] rounded-[14px] border border-[#d8dde4] bg-[#f3f4f6]/90 p-2 shadow-[0_10px_24px_rgba(15,23,42,0.14)]"
|
||||
@ -308,7 +307,6 @@ export function ImageParamsBar({
|
||||
>
|
||||
<span className="inline-flex items-center gap-1">
|
||||
{option.value === "4K" ? "超清 4K" : `高清 ${option.label}`}
|
||||
{option.value === "4K" ? <Sparkles className="h-3 w-3 text-[#0ea5e9]" /> : null}
|
||||
</span>
|
||||
</button>
|
||||
))}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user