Sign-in page: a non-square logo is centre-cropped into an 84×84 square — the card must size itself to the logo's real width and height #1748
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1748
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ben, 2026-09-22, reading the live Whakatōhea Demo sign-in page.
Every branded sign-in surface paints the community logo into a fixed 84×84 rounded square,
background-size: cover— so a logo that is not square is centre-cropped. A wide wordmark loses its ends; a tall mark loses its top and bottom. There is no width or height anywhere in the decision, and the card around it is a fixed width, so nothing can grow to fit.The same block is copy-pasted across the surfaces:
internal/idp/brand.go:97— the IDIP sign-in page;internal/idp/deviceapprove.go:261— the device-approval page;internal/idp/appdoorpage.go:93— the app door;clan.WriteBrandLogo's consumer).Live on the demo right now:
--oc-logo-full: url("https://whakatohea-demo.idss.nz/brand/logo")(20959 B,image/jpeg) paintedcoverinto.logo { width:84px; height:84px }.Wanted (Ben, 2026-09-22 — CSS only, no dynamic card width, no stored dimensions)
The crop exists only because the logo is a background-image on a fixed-size div: a background cannot size its box, so the box has to be square and something has to be cropped. Draw the logo as an
<img>element instead and the browser does the aspect ratio itself, with no measurement, no JavaScript and no kit change:No layout shift: the band is a fixed 84 px tall and the image is centred in a fixed-width card, so nothing below it moves while the image loads (a
min-heighton the wrapper covers a slow load). The kit therefore needs no width/height fields — dropped from this ticket.The letter-mark fallback (no logo in the kit) keeps its current square badge, unchanged.
Where
The same block is copy-pasted across the surfaces and all four move together:
internal/idp/brand.go:97— the IDIP sign-in page;internal/idp/deviceapprove.go:261— the device-approval page;internal/idp/appdoorpage.go:93— the app door;clan.WriteBrandLogo's consumer).Each currently emits
.logo { width:84px; height:84px; background-image: var(--oc-logo-full) }around an empty<div class="logo" data-field="community-logo">. Thedata-fieldstays; the element becomes an<img>carrying the samealtthe div'saria-labelcarries now.Design
docs/ux/wireframes/dashboard-auth/da-s1-community-sign-in.htmldraws the 84×84 square as the contract; it gets an amendment note and a wide-logo variant beside the square one (an agent may amend under ADR 0174 — two-way, DDR 0147's full-colour-logo intent is unchanged). The device-approval and app-door frames get the same note.Acceptance
Ben, 2026-09-22: CSS only — no dynamic card width, no stored logo dimensions. The crop is an artefact of painting the logo as a
background-imageon a fixed square div: a background cannot size its box. As an<img>withheight: 84px; width: auto; max-width: 100%; object-fit: contain, the browser derives the width from the image itself — a square logo renders exactly as today, a wordmark renders whole with the tinted badge hugging its shape, and the card never changes width. The brand-kit width/height fields and the card-widening rule are dropped from the ticket, andneeds-designwith them: the frame amendment is a two-way door an agent may take under ADR 0174.swarm-claim host=bens-mac-04 run=30373
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1748 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope