223-fix-user-fed-card-wrapping (#226)
This commit is contained in:
parent
49ef2bd665
commit
7592621d77
4 changed files with 25 additions and 15 deletions
|
@ -9,6 +9,8 @@ import {
|
|||
Dropdown,
|
||||
KebabToggle,
|
||||
Label,
|
||||
Flex,
|
||||
FlexItem,
|
||||
} from "@patternfly/react-core";
|
||||
import "./keycloak-card.css";
|
||||
|
||||
|
@ -53,15 +55,16 @@ export const KeycloakCard = ({
|
|||
</CardHeader>
|
||||
<CardBody />
|
||||
<CardFooter>
|
||||
<Flex>
|
||||
<FlexItem className="keycloak--keycloak-card__footer">
|
||||
{footerText && footerText}
|
||||
</FlexItem>
|
||||
<FlexItem>
|
||||
{labelText && (
|
||||
<Label
|
||||
color={labelColor || "gray"}
|
||||
className="keycloak__keycloak-card__footer-label"
|
||||
>
|
||||
{labelText}
|
||||
</Label>
|
||||
<Label color={labelColor || "gray"}>{labelText}</Label>
|
||||
)}
|
||||
</FlexItem>
|
||||
</Flex>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
);
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
.keycloak__keycloak-card__footer-label {
|
||||
margin-left: var(--pf-global--spacer--lg);
|
||||
.keycloak-admin--keycloak-card__footer-text {
|
||||
--pf-l-flex--spacer: var(--pf-l-flex--spacer--lg);
|
||||
}
|
||||
|
|
|
@ -100,7 +100,10 @@ export const UserFederationSection = () => {
|
|||
</DropdownItem>,
|
||||
];
|
||||
return (
|
||||
<GalleryItem key={index}>
|
||||
<GalleryItem
|
||||
key={index}
|
||||
className="keycloak-admin--user-federation__gallery-item"
|
||||
>
|
||||
<KeycloakCard
|
||||
id={userFederation.id!}
|
||||
dropdownItems={ufCardDropdownItems}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
.keycloak__user-federation__dropdown {
|
||||
margin-top: var(--pf-global--spacer--lg);
|
||||
}
|
||||
|
||||
.keycloak-admin--user-federation__gallery-item {
|
||||
display: contents;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue