fix: center signin and register page logos #164
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/westside-landing!164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "163-fix-logo-centering"
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?
Summary
Signin and register page logos were left-aligned because the global
img { display: block }rule makestext-align: centeron the parent ineffective. Addedmargin: 0 autofor proper block-element centering on both.signin-logoand.reg-logo.Changes
src/app.css—.signin-logo: changedmargin-bottom: 1remtomargin: 0 auto 1remsrc/app.css—.reg-logo: addeddisplay: block; margin: 0 auto 1remreplacingmargin-bottom: 1remTest Plan
/signin— logo should be horizontally centered within the header/register— logo should be horizontally centered within the headerReview Checklist
.signin-logoand.reg-logo)Related Notes
Related
Closes #163
Both logos were left-aligned because global img{display:block} makes text-align:center ineffective. Added margin:0 auto for proper block element centering, matching playground prototype. Closes #163 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>PR #164 Review
DOMAIN REVIEW
Tech stack: SvelteKit / CSS (pure CSS, no Tailwind)
Fix correctness: The global
img { display: block }rule (line 96 ofapp.css) makestext-align: centeron parent containers ineffective for centering images. Themargin: 0 autoapproach is the correct CSS technique for centering block-level elements. Both.reg-logoand.signin-logonow usemargin: 0 auto 1remwhich replaces the previousmargin-bottom: 1remwhile adding horizontal auto-centering.Scope: Single file changed (
src/app.css), +3/-2 lines. Both logo classes updated. No HTML changes needed -- this is purely a CSS fix.Consistency note:
.reg-logogets an explicitdisplay: blockdeclaration while.signin-logodoes not. This is fine -- the globalimgrule already appliesdisplay: blockto all images, so both will center correctly. The explicit declaration on.reg-logois redundant but makes the centering intent self-documenting at the component level.BLOCKERS
None.
NITS
display: blockon.reg-logo: The globalimg { display: block }(line 96) already applies this. The.signin-logochange does not add it, creating a minor inconsistency between the two classes. Either both should have the explicitdisplay: block(for self-documentation) or neither should (since the global rule covers it). Not blocking -- the rendered behavior is identical either way.SOP COMPLIANCE
163-fix-logo-centeringreferences issue #163)Closes #163)PROCESS OBSERVATIONS
Clean, minimal fix. Low change failure risk -- CSS-only, scoped to two classes, no logic changes. No deployment frequency impact. Visual validation per the test plan (signin + register pages at mobile and desktop viewports) is the appropriate verification method for this type of change.
VERDICT: APPROVED