UNCLASSIFIED - NO CUI

PR for four P1 Theme Fixes/QoL Improvements

Handful of changes to consider for the P1 KC theme. Sorry, I don't have permissions to make a pull request, so I'll do my best to describe the changes.

1. Login page QoL Improvement for Mobile Users

Current Proposed
before after

Real screenshots from a Samsung S10+

Required code changes
meta=viewport==width=device-width,initial-scale=1
  • Update new-ui.css, add the following media queries to prevent a colossal-logo for mobile users:
/* Max-width based off of bootstrap.css */
@media (max-width: 575.98px) {
  .card-header.branding.row {
    flex-wrap: nowrap;
  }
  .card-header.branding.row div:nth-child(2) {
    max-width: 0;
  }
}

/* Max-width based off testing */
@media (max-width: 300px) {
  .card-header.branding.row {
    flex-wrap: wrap;
  }
}

2. Fix navbar hiding content on /account pages

Problem Solution
account-problem account-solution
Required code change
/* Overrides bootstrap.css config */
.navbar.fixed-top {
  position: sticky;
}

3. Fix QR code setup for /account pages

Issue with a missing reference to totpStep2Note template text.

Required code change
Problem Solution
keycloak.bigbang.dev_8443_auth_realms_master_account_totp_referrer_security-admin-console keycloak.bigbang.dev_8443_auth_realms_master_account_totp_referrer_security-admin-console_referrer_uri_https_3A_2F_2Fkeycloak.bigbang.dev_3A8443_2Fauth_2Fadmin_2Fmaster_2Fconsole_2F
totpStep2Note=Note: The QR code changes every time Submit is clicked and must be rescanned for each attempt.

-> INB4, this is not an issue for QR code setup during registration, the messages_en.properties file under /login is setup correctly.

4. (since you're already in there) Add left/right padding to QR code secret key

Happy Glad
keycloak.bigbang.dev_8443_auth_realms_master_account_totp_referrer_security-admin-console_mode_manual keycloak.bigbang.dev_8443_auth_realms_master_account_totp_referrer_security-admin-console_mode_manual__1_
Required code change
#kc-totp-secret-key {
    /* ... */
    padding: 10px 5px;
}

Thanks!
Ducky

Edited by Jean-Luc Duckworth