Skip to content

fix(keycloak): keep register button clear of background banner on small screensPatch 1 - #334

Open
MuKuNdSaNjAy wants to merge 2 commits into
Greenstand:masterfrom
MuKuNdSaNjAy:patch-1
Open

MuKuNdSaNjAy wants to merge 2 commits into
Greenstand:masterfrom
MuKuNdSaNjAy:patch-1

Conversation

@MuKuNdSaNjAy

Copy link
Copy Markdown

Fixes Greenstand/treetracker-wallet-app#905

Problem

The "Find the tree on the background on our web map" banner is injected by login/resources/js/treetracker.js with inline position: fixed; bottom: 0. On short viewports (e.g. 408×692) it overlays the Register button.

Changes

  • treetracker.js: replaced inline styles with a tt-bg-credit class; added rel="noopener noreferrer" to the link.
  • treetracker.css: added .tt-bg-credit (same styles as before) and a media query (max-width: 767px, max-height: 800px) that switches it to position: static so it flows below the form.

Desktop layout is unchanged.

Testing

Verified on the live register page (prod-k8s.treetracker.org) via DevTools at 408×692 and desktop width. The banner now sits below the form on small screens, and the Register button is fully visible.

Note

The console also shows two theme stylesheets refused due to an empty MIME type (likely the web_modules/... entries in theme.properties). That's out of scope here, but it may need a separate issue.

This branch has not been deployed

No deployments
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.

Register button is partly hidden behind the web map banner

1 participant