Skip to content

Commit 082fa0f

Browse files
committed
fix minor styles problems
1 parent 47d1499 commit 082fa0f

File tree

6 files changed

+387
-385
lines changed

6 files changed

+387
-385
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### [9.0.2](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.0.2) (2023-09-28)
2+
- update useElven (native token configuration improvements)
3+
- fix styles for xPortal deeplink on login modal + other minor style fixes
4+
- update dependencies
5+
16
### [9.0.1](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.0.1) (2023-09-23)
27
- update useElven (update with a bugfix)
38
- update dependencies

components/elven-ui/login-modal-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const LoginModalButton: FC<LoginModalButtonProps> = ({
5858
{isLoggingIn ? 'Connecting...' : 'Connect'}
5959
</Button>
6060
)}
61-
<DialogContent className="max-w-xs sm:max-w-lg bg-zinc-200 dark:bg-zinc-950 p-0">
61+
<DialogContent className="max-w-xs sm:max-w-lg bg-white dark:bg-zinc-950 p-0">
6262
<DialogHeader className="px-6 pt-6">
6363
<DialogTitle>Connect your wallet</DialogTitle>
6464
</DialogHeader>

components/elven-ui/walletconnect-qr-code.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,8 @@ export const WalletConnectQRCode: FunctionComponent<
3434

3535
return (
3636
<div>
37-
<div
38-
className="[&>svg]:rounded-xl [&>svg]:max-w-xs [&>svg]:mx-auto"
39-
dangerouslySetInnerHTML={{
40-
__html: qrCodeSvg,
41-
}}
42-
/>
4337
{mobile ? (
44-
<div className="justify-center">
38+
<div className="flex justify-center w-full mb-6">
4539
<Button asChild>
4640
<a
4741
href={`${walletConnectDeepLink}?wallet-connect=${encodeURIComponent(
@@ -50,11 +44,17 @@ export const WalletConnectQRCode: FunctionComponent<
5044
rel="noopener noreferrer nofollow"
5145
target="_blank"
5246
>
53-
xPortal Login
47+
Go to xPortal to sign in!
5448
</a>
5549
</Button>
5650
</div>
5751
) : null}
52+
<div
53+
className="[&>svg]:rounded-xl [&>svg]:max-w-xs [&>svg]:mx-auto [&>svg]:border [&>svg]:border-solid [&>svg]:border-zinc-300 dark:[&>svg]:border-0"
54+
dangerouslySetInnerHTML={{
55+
__html: qrCodeSvg,
56+
}}
57+
/>
5858
</div>
5959
);
6060
};

components/ui/dialog.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ const Dialog = DialogPrimitive.Root;
1010

1111
const DialogTrigger = DialogPrimitive.Trigger;
1212

13-
const DialogPortal = ({
14-
className,
15-
...props
16-
}: DialogPrimitive.DialogPortalProps) => (
17-
<DialogPrimitive.Portal className={cn(className)} {...props} />
13+
const DialogPortal = ({ ...props }: DialogPrimitive.DialogPortalProps) => (
14+
<DialogPrimitive.Portal {...props} />
1815
);
1916
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
2017

@@ -25,7 +22,7 @@ const DialogOverlay = React.forwardRef<
2522
<DialogPrimitive.Overlay
2623
ref={ref}
2724
className={cn(
28-
'fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
25+
'fixed inset-0 z-50 bg-zinc-950/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
2926
className
3027
)}
3128
{...props}

0 commit comments

Comments
 (0)