The studio paints a thirty-pixel thumbnail with a full-size screenshot.
The looks are taken at two widths — phone 390×844 and desktop 1280×800 (src/core/looks.ts, LOOK_SIZES) — and every place that shows one shows one of those two files, however small the slot:
where
slot (CSS)
the file it loads
lookThumb on an ask card (src/web/pages/looks.ts:162, studio/asks.ts:384)
.look-thumb30×40
a full look
lookNow on the app page (looks.ts:140)
.look-now168px wide
the 1280×800 desktop look, and notloading="lazy"
lookCard's phone (looks.ts:104)
.look-phone200px
the 390×844 phone look
Only lookCard's desktop picture (flex: 1 1 320px; max-width: 1280px) is shown near the size it was taken at. An asks panel with several asks fetches several full screenshots to draw several thirty-pixel boxes, and the app page fetches a 1280-pixel PNG eagerly to draw 168 of them.
I could not weigh the files here — this clone has no screenshotter, so no look exists to measure. The ratio is the argument; the bytes are for whoever takes it to measure and put in the pull.
Acceptance
Files I expect to change
src/core/looks.ts (the third size), whatever takes the picture, src/web/pages/looks.ts (lookThumb, lookNow, and the phone picture in lookCard), test/looks.test.ts if there is one, otherwise where looks are tested today.
Risks
No image library. Do not add one to resize on the way out — take the picture at the size you want, which is what the forge already does for two sizes.
Storage. A third file per commit per environment, small. Say what it costs; if looks are already pruned, prune this the same way.
Scope. This is which file a slot loads. It is not a redesign of the look card, and not a change to when a look is taken (#40 settled that).
The studio paints a thirty-pixel thumbnail with a full-size screenshot.
The looks are taken at two widths —
phone390×844 anddesktop1280×800 (src/core/looks.ts,LOOK_SIZES) — and every place that shows one shows one of those two files, however small the slot:lookThumbon an ask card (src/web/pages/looks.ts:162,studio/asks.ts:384).look-thumb30×40lookNowon the app page (looks.ts:140).look-now168px wideloading="lazy"lookCard's phone (looks.ts:104).look-phone200pxOnly
lookCard's desktop picture (flex: 1 1 320px; max-width: 1280px) is shown near the size it was taken at. An asks panel with several asks fetches several full screenshots to draw several thirty-pixel boxes, and the app page fetches a 1280-pixel PNG eagerly to draw 168 of them.I could not weigh the files here — this clone has no screenshotter, so no look exists to measure. The ratio is the argument; the bytes are for whoever takes it to measure and put in the pull.
Acceptance
Files I expect to change
src/core/looks.ts(the third size), whatever takes the picture,src/web/pages/looks.ts(lookThumb,lookNow, and the phone picture inlookCard),test/looks.test.tsif there is one, otherwise where looks are tested today.Risks
Suggested: Torque.