Skip to content

AdminThemeUikit: fix login form fields hidden behind oversized masthead - #343

Open
adrianbj wants to merge 1 commit into
processwire:devfrom
adrianbj:fix/login-masthead-overflow
Open

AdminThemeUikit: fix login form fields hidden behind oversized masthead#343
adrianbj wants to merge 1 commit into
processwire:devfrom
adrianbj:fix/login-masthead-overflow

Conversation

@adrianbj

@adrianbj adrianbj commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Fixes processwire/processwire-issues#2331

On the themes/default login screen, the login overrides set #pw-masthead-mobile { height: auto } so the logo area can grow, but the parent #pw-mastheads keeps the theme's fixed height: 56px. With a custom admin logo whose login logo box (.pw-logo-link, aspect-ratio: 4/3, contents scaled 1.35×) exceeds 56px — e.g. any wide logo such as a 300×66 SVG — the masthead overflows its container and hangs down over the top of the login form. Because the masthead carries z-index: 100 !important, it stacks above the Username field (blocking mouse interaction), and on sites whose custom admin CSS gives .pw-masthead an opaque background it visually erases the Username label/input and the Password label, leaving only the Password input visible.

This adds height: auto to the existing login-screen #pw-mastheads override so the logo area pushes the form down instead of overlapping it.

Verified:

  • On an affected live site (3.0.271, wide custom logo, opaque .pw-masthead background): injecting this one rule restores both fields and labels; document.elementsFromPoint() at the Username input's center returns the input itself instead of the .pw-logo-link / #pw-masthead-mobile stack.
  • On a stock 3.0.270 install with the default logo: no visual regression — the form just sits a few pixels lower as the logo box takes its natural in-flow height.

The login screen styles in themes/default/admin.css set
#pw-masthead-mobile to height:auto so the logo area can grow, but the
parent #pw-mastheads keeps its fixed 56px height. With a custom admin
logo whose login logo box (.pw-logo-link, aspect-ratio 4/3) exceeds
56px, the masthead overflows its container and overlaps the top of the
login form. Because the masthead has z-index 100 !important, sites that
give .pw-masthead an opaque background paint over the Username field
and labels, leaving only the Password input visible.

Let #pw-mastheads size naturally on the login screen so the logo area
pushes the form down instead of overlapping it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant