Size HTML firmware previews by board (480x320 for 3.5).

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-23 18:45:24 +08:00
parent 2dd97f95ad
commit cf617592d4
4 changed files with 26 additions and 9 deletions

View File

@@ -36,7 +36,13 @@ export function FirmwareDetail({
</h3>
</div>
<div className="aspect-[4/3] w-full border-b border-[var(--line)] bg-black/40">
<div
className={
fw.boardId === "esp32-3248s035"
? "aspect-[3/2] w-full border-b border-[var(--line)] bg-black/40"
: "aspect-[4/3] w-full border-b border-[var(--line)] bg-black/40"
}
>
{fw.media.preview ? (
<FirmwarePreview fw={fw} />
) : fw.media.video ? (