From 8f94d3aa65404ab080319bdc84e3e3c6fd9454b6 Mon Sep 17 00:00:00 2001 From: yuanzonghao Date: Tue, 2 Jun 2026 01:14:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20editorial=20homepage=20rework=20?= =?UTF-8?q?=E2=80=94=20flat=202=C3=9730=20stories,=20autosize=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revises the InfiPlot homepage from the initial prototype pass. Stories data model - Replaces the artificial 7-hero + 16-gallery split with a flat per-gender model: 30 preset stories each for 男性向 / 女性向. - Renames assets hero*/gallery* → m{0..29} / f{0..29}; same index shares aspect ratio across genders so the gender crossfade never jumps card height. - Fills in the missing 女性向 set and expands both genders to 30. Cards - StoryCard measures aspect ratio at runtime from the loaded image (onLoad → naturalWidth/Height), fixing the frosted-caption band reflow on lazy image load. Drops ready/fallback props; single masonry map over STORIES[gender]. Hero input - Single-line → auto-growing