8000 Fix layout of IDP buttons with long display names by rawagner · Pull Request #55095 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,40 @@ hr {

/* Social/identity providers */

/* Allow long provider labels to shrink and wrap inside their buttons. */
#kc-social-providers a.pf-v5-c-button {
height: auto;
min-width: 0;
white-space: normal;
}

#kc-social-providers a.pf-v5-c-button > span {
min-width: 0;
overflow-wrap: anywhere;
white-space: normal;
}

#kc-social-providers img,
#kc-social-providers picture {
flex-shrink: 0;
height: var(--pf-v5-global--FontSize--xl);
width: var(--pf-v5-global--FontSize--xl);
object-fit: contain;
}

/* Stretch provider buttons to the tallest button in each grid row. */
#kc-social-providers ul.pf-v5-l-grid {
align-items: stretch;
}

#kc-social-providers ul.pf-v5-l-grid > li {
display: flex;
}

#kc-social-providers ul.pf-v5-l-grid > li > a {
flex: 1;
}

/* Remove bottom padding when no info section follows (e.g. registration disabled) */
#kc-social-providers:last-child .pf-v5-c-login__main-body {
padding-bottom: 0 !important;
Expand Down
Loading
0