Commit e5104ac7 authored by isstuev's avatar isstuev

redesign fixes

parent 4fb75da4
......@@ -40,7 +40,7 @@ const variantFloating: PartsStyleFunction<typeof parts> = (props: StyleFunctionP
// label's styles
label: {
top: '20px',
left: '20px',
left: '22px',
zIndex: 2,
position: 'absolute',
color: mode('gray.500', 'whiteAlpha.400')(props),
......
......@@ -21,6 +21,7 @@ const Table: ComponentMultiStyleConfig = {
borderTopLeftRadius: 'md',
borderTopRightRadius: 'md',
overflow: 'hidden',
fontVariant: 'normal',
},
},
sizes: {
......
import React from 'react';
import Jazzicon, { jsNumberForAddress } from 'react-jazzicon';
import { Box, Link, HStack, VStack, Image, Text, Icon } from '@chakra-ui/react';
import { Box, Link, HStack, VStack, Image, Text, Icon, Tooltip } from '@chakra-ui/react';
import CopyToClipboard from '../CopyToClipboard/CopyToClipboard';
import type { TWatchlistItem } from '../../data/watchlist';
......@@ -11,22 +11,22 @@ import WalletIcon from '../../icons/wallet.svg';
const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
const image = <Jazzicon diameter={ 50 } seed={ jsNumberForAddress(item.address) }/>
const image = <Jazzicon diameter={ 24 } seed={ jsNumberForAddress(item.address) }/>
return (
<HStack spacing={ 3 } align="top">
<Box width="50px">{ image }</Box>
<Box width="24px">{ image }</Box>
<VStack spacing={ 2 } align="stretch" overflow="hidden">
<HStack spacing={ 2 } alignContent="center">
<Link
href="#"
color="blue.500"
title={ item.address }
overflow="hidden"
textOverflow="ellipsis"
fontWeight={ 600 }
lineHeight="24px"
>
<Tooltip hasArrow label={ item.address }>
{ item.address }
</Tooltip>
</Link>
<CopyToClipboard text={ item.address }/>
</HStack>
......
......@@ -7,6 +7,7 @@ import {
Switch,
Icon,
HStack,
Tooltip,
} from '@chakra-ui/react'
import EditIcon from '../../icons/edit.svg';
......@@ -35,9 +36,11 @@ const WatchlistTableItem = ({ item, onEditClick, onDeleteClick }: Props) => {
<Tr alignItems="top" key={ item.address }>
<Td><WatchListAddressItem item={ item }/></Td>
<Td>
<Tag variant="gray" lineHeight="24px" title={ item.tag }>
<Tooltip hasArrow label={ item.tag }>
<Tag variant="gray" lineHeight="24px">
{ item.tag }
</Tag>
</Tooltip>
</Td>
<Td><Switch colorScheme="blue" size="md" isChecked={ item.notification }/></Td>
<Td>
......
......@@ -27,7 +27,7 @@ const WatchlistTable = ({ data, onDeleteClick, onEditClick }: Props) => {
<Tr>
<Th width="70%">Address</Th>
<Th width="30%">Private tag</Th>
<Th width="108px">Notification</Th>
<Th width="160px">Email notification</Th>
<Th width="108px"></Th>
</Tr>
</Thead>
......
......@@ -19,8 +19,8 @@ const AccountNavLink = ({ text, pathname, icon }: Props) => {
as="li"
listStyleType="none"
w="220px"
px={ 5 }
py={ 4 }
px={ 4 }
py={ 2.5 }
color={ isActive ? 'blue.600' : 'gray.600' }
bgColor={ isActive ? 'blue.50' : 'transparent' }
_hover={{ color: 'blue.600' }}
......
......@@ -18,7 +18,7 @@ const navItems = [
const AccountNavigation = () => {
return (
<Box as="nav">
<VStack as="ul" spacing="3">
<VStack as="ul" spacing="2">
{ navItems.map((item) => <AccountNavLink key={ item.text } { ...item }/>) }
</VStack>
</Box>
......
......@@ -20,8 +20,8 @@ const MainNavLink = ({ text, pathname, icon }: Props) => {
as="li"
listStyleType="none"
w="220px"
px={ 5 }
py={ 4 }
px={ 4 }
py={ 2.5 }
color={ isActive ? 'blue.600' : 'gray.600' }
bgColor={ isActive ? 'blue.50' : 'transparent' }
borderRadius="base"
......
......@@ -18,7 +18,7 @@ const navItems = [
const MainNavigation = () => {
return (
<Box as="nav">
<VStack as="ul" spacing="3">
<VStack as="ul" spacing="2">
{ navItems.map((item) => <MainNavLink key={ item.text } { ...item }/>) }
</VStack>
</Box>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment