Skip to content

Commit

Permalink
Fixed layout issue on my settings page
Browse files Browse the repository at this point in the history
Signed-off-by: Aashir Siddiqui <aashir_sidiki@hotmail.com>
  • Loading branch information
aashir21 committed Nov 4, 2024
1 parent 9c82ba8 commit ce8bb67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galasa-ui/src/components/MySettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ export default function MySettingsPage() {
<h5 className={styles.heading}>An access token is a unique secret key held by a client program so it has permission to use the Galasa service</h5>
<h5 className={styles.heading}>A token has the same access rights as the user who allocated it.</h5>
</div>
</div>

<div className={styles.btnContainer}>
<div className={styles.btnContainer}>
<TokenRequestModal isDisabled={selectedTokens.size > 0 ? true : false} />

<Button onClick={() => setIsDeleteModalOpen(true)} className={styles.deleteBtn} disabled={selectedTokens.size === 0} kind="danger">
Delete {selectedTokens.size} selected access tokens
</Button>
</div>
</div>

<div title="Access Tokens" className={styles.tokensList}>
{
Expand Down
6 changes: 6 additions & 0 deletions galasa-ui/src/styles/MySettings.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
margin: 0 auto;
}

.btnContainer {
display: flex;
margin-top: 1rem;
justify-content: flex-end;
}

.tokensList{
display: flex;
flex-wrap: wrap;
Expand Down

0 comments on commit ce8bb67

Please sign in to comment.