Opened 3 years ago

Closed 3 years ago

#32884 closed Cleanup/optimization (fixed)

Login header title is slightly off-center

Reported by: Lou Huang Owned by: Lou Huang
Component: contrib.admin Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description

On the /admin/login page, and on window sizes greater than 1024px wide, the header that says "Django administration" is very slightly off-center. This is caused by a 20px right margin on the #branding h1 selector (provided in base.css). See screenshots.

I don't think the solution is as simple as removing the margin, since the style is used on other administration pages, but perhaps an override is necessary (e.g. removing the right margin on the .login #header h1 selector, which is already declared).

I'm happy to provide a PR for review if needed. Thanks!

Attachments (2)

Screen Shot 2021-06-26 at 4.43.17 PM.png (35.2 KB ) - added by Lou Huang 3 years ago.
Screen Shot 2021-06-26 at 4.49.52 PM.png (50.6 KB ) - added by Lou Huang 3 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by Mariusz Felisiak, 3 years ago

Owner: changed from nobody to Lou Huang
Status: newassigned
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

Thanks for the report. Agreed, we can clear the margin on .login #header h1.

I'm happy to provide a PR for review if needed. Thanks!

Would be great, thanks.

comment:2 by Lou Huang, 3 years ago

Has patch: set

comment:3 by Mariusz Felisiak, 3 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by GitHub <noreply@…>, 3 years ago

Resolution: fixed
Status: assignedclosed

In 7ba9da8:

Fixed #32884 -- Fixed centering of the header on admin login page.

Note: See TracTickets for help on using tickets.
Back to Top