From 436172333d2a0ee33127461068441329ed7636d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20T=C3=B3rz?= <93620601+torztomasz@users.noreply.github.com> Date: Wed, 23 Aug 2023 12:40:54 +0200 Subject: [PATCH] fix link style issue (#479) --- packages/frontend/src/view/components/Link.tsx | 6 ++---- .../src/view/pages/user/UserRecoverPage.tsx | 17 +++++++++++++---- .../src/view/pages/user/UserRegisterPage.tsx | 12 +++++++++--- .../view/pages/user/components/UserProfile.tsx | 16 ++++++++++++++-- 4 files changed, 38 insertions(+), 13 deletions(-) diff --git a/packages/frontend/src/view/components/Link.tsx b/packages/frontend/src/view/components/Link.tsx index b65547478..b8294ef31 100644 --- a/packages/frontend/src/view/components/Link.tsx +++ b/packages/frontend/src/view/components/Link.tsx @@ -21,16 +21,14 @@ export function Link({ const rel = isOutLink ? 'noreferrer noopener' : undefined const hasHref = href != null const classNames = cx( - 'group inline mx-auto my-auto text-blue-500 fill-blue-500 hover:fill-blue-600 hover:text-blue-600 underline underline-offset-[3.5px] transition-colors', + 'group inline-flex gap-2 items-center text-blue-500 fill-blue-500 hover:fill-blue-600 hover:text-blue-600 underline underline-offset-[3.5px] transition-colors', className ) return hasHref ? ( {accessoryLeft} {children} - {isOutLink && ( - - )} + {isOutLink && } {accessoryRight} ) : ( diff --git a/packages/frontend/src/view/pages/user/UserRecoverPage.tsx b/packages/frontend/src/view/pages/user/UserRecoverPage.tsx index b8316a44d..81fcd8cbe 100644 --- a/packages/frontend/src/view/pages/user/UserRecoverPage.tsx +++ b/packages/frontend/src/view/pages/user/UserRecoverPage.tsx @@ -4,6 +4,7 @@ import React from 'react' import { WarningIcon } from '../../assets/icons/WarningIcon' import { Button } from '../../components/Button' import { Card } from '../../components/Card' +import { EtherscanLink } from '../../components/EtherscanLink' import { InlineEllipsis } from '../../components/InlineEllipsis' import { Link } from '../../components/Link' import { ContentWrapper } from '../../components/page/ContentWrapper' @@ -61,7 +62,7 @@ function UserRecoverPage(props: UserRegisterPageProps) {

Stark key

-
+

Unknown

@@ -70,9 +71,17 @@ function UserRecoverPage(props: UserRegisterPageProps) {

Ethereum address

- - {props.context.user.address.toString()} - + + + {props.context.user.address.toString()} + + +