Skip to content

Commit

Permalink
fix button and dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Nov 8, 2023
1 parent 319cde6 commit 01f8cbb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
8 changes: 7 additions & 1 deletion ui/app/mirrors/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ export default async function Mirrors() {
href={'/mirrors/create'}
variant='normalSolid'
>
<div style={{ display: 'flex', alignItems: 'center' }}>
<div
style={{
display: 'flex',
alignItems: 'center',
whiteSpace: 'nowrap',
}}
>
<Icon name='add' /> <Label>New mirror</Label>
</div>
</Button>
Expand Down
13 changes: 11 additions & 2 deletions ui/app/peers/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,17 @@ export default async function Peers() {
href={'/peers/create'}
variant='normalSolid'
>
<div style={{ display: 'flex', alignItems: 'center' }}>
<Icon name='add' /> <Label>New peer</Label>
<div
style={{
display: 'flex',
alignItems: 'center',
whiteSpace: 'nowrap',
}}
>
<Icon name='add' />
<Label style={{ marginLeft: '0.5rem', fontSize: 15 }}>
New peer
</Label>
</div>
</Button>
}
Expand Down
7 changes: 6 additions & 1 deletion ui/lib/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ export function Dialog({
<RadixDialog.Root {...rootProps}>
<RadixDialog.Trigger asChild>{TriggerButton}</RadixDialog.Trigger>
<RadixDialog.Portal>
<DialogContent size={size}>{children}</DialogContent>
<DialogContent
onPointerDownOutside={(e) => e.preventDefault()}
size={size}
>
{children}
</DialogContent>
</RadixDialog.Portal>
</RadixDialog.Root>
);
Expand Down

0 comments on commit 01f8cbb

Please sign in to comment.