Sdded some css to fix alignment (#3402)
This commit is contained in:
parent
f0ee68afc9
commit
283390dee9
2 changed files with 19 additions and 17 deletions
|
@ -289,3 +289,11 @@ input#kc-scopes {
|
||||||
.kc-attributeCancel {
|
.kc-attributeCancel {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kc--attributes-validations--add-validation-button {
|
||||||
|
margin-top: -55px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.kc--attributes-validations--action-cell {
|
||||||
|
text-align: right;
|
||||||
|
}
|
|
@ -3,8 +3,6 @@ import {
|
||||||
Button,
|
Button,
|
||||||
ButtonVariant,
|
ButtonVariant,
|
||||||
Divider,
|
Divider,
|
||||||
Flex,
|
|
||||||
FlexItem,
|
|
||||||
Text,
|
Text,
|
||||||
TextVariants,
|
TextVariants,
|
||||||
} from "@patternfly/react-core";
|
} from "@patternfly/react-core";
|
||||||
|
@ -78,20 +76,16 @@ export const AttributeValidations = () => {
|
||||||
)}
|
)}
|
||||||
<DeleteConfirm />
|
<DeleteConfirm />
|
||||||
<div className="kc-attributes-validations">
|
<div className="kc-attributes-validations">
|
||||||
<Flex>
|
|
||||||
<FlexItem align={{ default: "alignRight" }}>
|
|
||||||
<Button
|
<Button
|
||||||
id="addValidator"
|
id="addValidator"
|
||||||
onClick={() => toggleModal()}
|
onClick={() => toggleModal()}
|
||||||
variant="link"
|
variant="link"
|
||||||
className="kc-addValidator"
|
|
||||||
data-testid="addValidator"
|
data-testid="addValidator"
|
||||||
|
className="kc--attributes-validations--add-validation-button"
|
||||||
icon={<PlusCircleIcon />}
|
icon={<PlusCircleIcon />}
|
||||||
>
|
>
|
||||||
{t("realm-settings:addValidator")}
|
{t("realm-settings:addValidator")}
|
||||||
</Button>
|
</Button>
|
||||||
</FlexItem>
|
|
||||||
</Flex>
|
|
||||||
<Divider />
|
<Divider />
|
||||||
<TableComposable aria-label="validators-table">
|
<TableComposable aria-label="validators-table">
|
||||||
<Thead>
|
<Thead>
|
||||||
|
@ -110,7 +104,7 @@ export const AttributeValidations = () => {
|
||||||
<Td dataLabel={t("validatorColNames.colConfig")}>
|
<Td dataLabel={t("validatorColNames.colConfig")}>
|
||||||
{JSON.stringify(validator.value)}
|
{JSON.stringify(validator.value)}
|
||||||
</Td>
|
</Td>
|
||||||
<Td>
|
<Td className="kc--attributes-validations--action-cell">
|
||||||
<Button
|
<Button
|
||||||
key="validator"
|
key="validator"
|
||||||
variant="link"
|
variant="link"
|
||||||
|
|
Loading…
Reference in a new issue