added display name to menu toggle (#31431)
fixes: #31183 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
33b3fd313c
commit
b769e65641
2 changed files with 14 additions and 3 deletions
|
@ -69,7 +69,7 @@ const RealmText = ({ name, displayName, showIsRecent }: RealmTextProps) => {
|
|||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<Split className="keycloak__realm_selector__list-item-split">
|
||||
<Split>
|
||||
<SplitItem isFilled>
|
||||
<Stack>
|
||||
{displayName ? (
|
||||
|
@ -172,7 +172,14 @@ export const RealmSelector = () => {
|
|||
}}
|
||||
isFullWidth
|
||||
>
|
||||
{label(t, realmDisplayName, realm)}
|
||||
<Stack className="keycloak__realm_selector__dropdown">
|
||||
{realmDisplayName ? (
|
||||
<StackItem className="pf-v5-u-font-weight-bold" isFilled>
|
||||
{label(t, realmDisplayName)}
|
||||
</StackItem>
|
||||
) : null}
|
||||
<StackItem isFilled>{realm}</StackItem>
|
||||
</Stack>
|
||||
</MenuToggle>
|
||||
)}
|
||||
>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.keycloak__realm_selector__dropdown .pf-v5-c-menu__list .pf-m-fill {
|
||||
.keycloak__realm_selector__dropdown .pf-m-fill {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
@ -15,3 +15,7 @@
|
|||
margin-bottom: var(--pf-v5-c-nav__link--PaddingBottom);
|
||||
padding-left: var(--pf-v5-c-nav__link--PaddingLeft);
|
||||
}
|
||||
|
||||
.keycloak__realm_selector__dropdown {
|
||||
text-align: left;
|
||||
}
|
Loading…
Reference in a new issue