223-fix-user-fed-card-wrapping (#226)

This commit is contained in:
Sarah Rambacher 2020-11-18 10:06:56 -05:00 committed by GitHub
parent 49ef2bd665
commit 7592621d77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 15 deletions

View file

@ -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>
);

View file

@ -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);
}

View file

@ -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}

View file

@ -1,3 +1,7 @@
.keycloak__user-federation__dropdown {
margin-top: var(--pf-global--spacer--lg);
}
}
.keycloak-admin--user-federation__gallery-item {
display: contents;
}