mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -05:00
fix(ui): add margin to delete role button (#802)
Co-authored-by: Cheney Ni <cheneyni@umich.edu>
This commit is contained in:
parent
89b3c9c098
commit
e34c5c99fe
1 changed files with 6 additions and 2 deletions
|
@ -70,6 +70,10 @@ export const Roles = observer(({ server }: Props) => {
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const DeleteRoleButton = styled(Button)`
|
||||||
|
margin: 16px 0;
|
||||||
|
`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PermissionsLayout
|
<PermissionsLayout
|
||||||
server={server}
|
server={server}
|
||||||
|
@ -266,12 +270,12 @@ export const Roles = observer(({ server }: Props) => {
|
||||||
<h1>
|
<h1>
|
||||||
<Text id="app.settings.categories.danger_zone" />
|
<Text id="app.settings.categories.danger_zone" />
|
||||||
</h1>
|
</h1>
|
||||||
<Button
|
<DeleteRoleButton
|
||||||
palette="error"
|
palette="error"
|
||||||
compact
|
compact
|
||||||
onClick={deleteRole}>
|
onClick={deleteRole}>
|
||||||
<Text id="app.settings.permissions.delete_role" />
|
<Text id="app.settings.permissions.delete_role" />
|
||||||
</Button>
|
</DeleteRoleButton>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue