style(ui): keep placeholder height while narrowing width
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-02-21 03:51:53 +08:00
parent 9c6beb3bd5
commit 75145fd19e

View File

@ -69,7 +69,7 @@ export const ImageGenerationLoading = memo(
<div
className={cn(
"relative overflow-hidden rounded-[22px] border border-[#e1e4ea] bg-[#eaedf2]",
count === 1 ? "h-[320px] w-full max-w-[340px]" : "grid gap-3 p-3",
count === 1 ? "h-[420px] w-full max-w-[340px]" : "grid gap-3 p-3",
count > 1 && "grid-cols-2"
)}
>
@ -82,7 +82,7 @@ export const ImageGenerationLoading = memo(
Array.from({ length: count }).map((_, index) => (
<div
key={index}
className="relative h-[150px] overflow-hidden rounded-2xl border border-[#dfe3e9] bg-[#e7ebf0]"
className="relative h-[180px] overflow-hidden rounded-2xl border border-[#dfe3e9] bg-[#e7ebf0]"
>
<div className="absolute inset-0 bg-gradient-to-r from-[#e7ebf0] via-[#dce2ea] to-[#e7ebf0]" />
<div