diff --git a/src/app/components/Toolbar/Features/Account/Account.tsx b/src/app/components/Toolbar/Features/Account/Account.tsx
index 1b36b52855..bbfa1af7ba 100644
--- a/src/app/components/Toolbar/Features/Account/Account.tsx
+++ b/src/app/components/Toolbar/Features/Account/Account.tsx
@@ -44,7 +44,7 @@ export const Account = memo((props: AccountProps) => {
background={props.isActive ? 'neutral-2' : undefined}
border={{ color: props.isActive ? 'neutral-2' : 'brand' }}
pad="small"
- flex="grow"
+ flex={{ shrink: 0 }}
fill="horizontal"
role="checkbox"
aria-checked={props.isActive}
diff --git a/src/app/components/Toolbar/Features/Account/__tests__/__snapshots__/Account.test.tsx.snap b/src/app/components/Toolbar/Features/Account/__tests__/__snapshots__/Account.test.tsx.snap
index b064736b69..b88b28d264 100644
--- a/src/app/components/Toolbar/Features/Account/__tests__/__snapshots__/Account.test.tsx.snap
+++ b/src/app/components/Toolbar/Features/Account/__tests__/__snapshots__/Account.test.tsx.snap
@@ -43,9 +43,9 @@ exports[` should match snapshot 1`] = `
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
- -webkit-flex: 1 0 auto;
- -ms-flex: 1 0 auto;
- flex: 1 0 auto;
+ -webkit-flex: 0 0 auto;
+ -ms-flex: 0 0 auto;
+ flex: 0 0 auto;
width: 100%;
padding: 12px;
border-radius: 5px;
diff --git a/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap
index fa5ced57b0..511cab98f3 100644
--- a/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap
+++ b/src/app/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.snap
@@ -14,25 +14,6 @@ exports[` should match snapshot 1`] = `
-webkit-font-smoothing: antialiased;
}
-.c1 {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- box-sizing: border-box;
- max-width: 100%;
- min-width: 0;
- min-height: 0;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- max-height: 400px;
- padding-top: 24px;
- padding-bottom: 24px;
- padding-right: 12px;
- overflow-y: auto;
-}
-
.c2 {
display: -webkit-box;
display: -webkit-flex;
@@ -46,9 +27,9 @@ exports[` should match snapshot 1`] = `
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
- -webkit-flex: 1 0 auto;
- -ms-flex: 1 0 auto;
- flex: 1 0 auto;
+ -webkit-flex: 0 0 auto;
+ -ms-flex: 0 0 auto;
+ flex: 0 0 auto;
width: 100%;
padding: 12px;
border-radius: 5px;
@@ -153,6 +134,25 @@ exports[` should match snapshot 1`] = `
padding-top: 24px;
}
+.c1 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ box-sizing: border-box;
+ max-width: 100%;
+ min-width: 0;
+ min-height: 0;
+ -webkit-flex-direction: column;
+ -ms-flex-direction: column;
+ flex-direction: column;
+ height: 90%;
+ padding-top: 24px;
+ padding-bottom: 24px;
+ padding-right: 12px;
+ overflow-y: auto;
+}
+
.c5 {
font-size: 18px;
line-height: 24px;
@@ -302,16 +302,11 @@ exports[` should match snapshot 1`] = `
}
@media only screen and (max-width:768px) {
- .c1 {
- padding-top: 12px;
- padding-bottom: 12px;
- }
+
}
@media only screen and (max-width:768px) {
- .c1 {
- padding-right: 6px;
- }
+
}
@media only screen and (max-width:768px) {
@@ -351,6 +346,19 @@ exports[` should match snapshot 1`] = `
}
}
+@media only screen and (max-width:768px) {
+ .c1 {
+ padding-top: 12px;
+ padding-bottom: 12px;
+ }
+}
+
+@media only screen and (max-width:768px) {
+ .c1 {
+ padding-right: 6px;
+ }
+}
+
@media only screen and (max-width:768px) {
}
diff --git a/src/app/components/Toolbar/Features/AccountSelector/index.tsx b/src/app/components/Toolbar/Features/AccountSelector/index.tsx
index c97f983a42..add9c824f1 100644
--- a/src/app/components/Toolbar/Features/AccountSelector/index.tsx
+++ b/src/app/components/Toolbar/Features/AccountSelector/index.tsx
@@ -11,6 +11,7 @@ import { memo } from 'react'
import { useTranslation } from 'react-i18next'
import { useDispatch, useSelector } from 'react-redux'
import { ManageableAccount } from '../Account/ManageableAccount'
+import { ScrollableContainer } from '../ScrollableContainer'
interface Props {
closeHandler: () => any
@@ -38,14 +39,7 @@ export const AccountSelector = memo((props: Props) => {
return (
<>
-
- {accounts}
-
+ {accounts}
diff --git a/src/app/components/Toolbar/Features/Contacts/ContactAccount.tsx b/src/app/components/Toolbar/Features/Contacts/ContactAccount.tsx
index 34573da99c..0219930ef9 100644
--- a/src/app/components/Toolbar/Features/Contacts/ContactAccount.tsx
+++ b/src/app/components/Toolbar/Features/Contacts/ContactAccount.tsx
@@ -25,7 +25,7 @@ export const ContactAccount = ({ contact }: ContactAccountProps) => {
const deleteHandler = (address: string) => dispatch(contactsActions.delete(address))
return (
-
+ <>
{
)}
-
+ >
)
}
diff --git a/src/app/components/Toolbar/Features/Contacts/__tests__/__snapshots__/index.test.tsx.snap b/src/app/components/Toolbar/Features/Contacts/__tests__/__snapshots__/index.test.tsx.snap
index ed2ff67243..9a64113f8d 100644
--- a/src/app/components/Toolbar/Features/Contacts/__tests__/__snapshots__/index.test.tsx.snap
+++ b/src/app/components/Toolbar/Features/Contacts/__tests__/__snapshots__/index.test.tsx.snap
@@ -15,20 +15,6 @@ exports[` should match snapshot 1`] = `
}
.c2 {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- box-sizing: border-box;
- max-width: 100%;
- min-width: 0;
- min-height: 0;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
-}
-
-.c3 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -41,21 +27,21 @@ exports[` should match snapshot 1`] = `
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
- -webkit-flex: 1 0 auto;
- -ms-flex: 1 0 auto;
- flex: 1 0 auto;
+ -webkit-flex: 0 0 auto;
+ -ms-flex: 0 0 auto;
+ flex: 0 0 auto;
width: 100%;
padding: 12px;
border-radius: 5px;
cursor: pointer;
}
-.c3:hover {
+.c2:hover {
background-color: #0092f6;
color: #FFFFFF;
}
-.c4 {
+.c3 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -72,6 +58,20 @@ exports[` should match snapshot 1`] = `
flex: 1 0 auto;
}
+.c4 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ box-sizing: border-box;
+ max-width: 100%;
+ min-width: 0;
+ min-height: 0;
+ -webkit-flex-direction: column;
+ -ms-flex-direction: column;
+ flex-direction: column;
+}
+
.c6 {
display: -webkit-box;
display: -webkit-flex;
@@ -130,7 +130,7 @@ exports[` should match snapshot 1`] = `
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
- height: auto;
+ height: 90%;
padding-top: 24px;
padding-bottom: 24px;
padding-right: 12px;
@@ -289,13 +289,13 @@ exports[` should match snapshot 1`] = `
}
@media only screen and (max-width:768px) {
- .c3 {
+ .c2 {
border: solid 1px #0092f6;
}
}
@media only screen and (max-width:768px) {
- .c3 {
+ .c2 {
padding: 6px;
}
}
@@ -344,58 +344,54 @@ exports[` should match snapshot 1`] = `
class="c1"
>
-
-
- My Contact
-
-
-
+
+
+
-
- oasis1qq2v...sv0d5eq4
-
+ oasis1qq2v...sv0d5eq4
-
+
+
+
-
-
-
+ Manage
+
diff --git a/src/app/components/Toolbar/Features/Contacts/index.tsx b/src/app/components/Toolbar/Features/Contacts/index.tsx
index 09f285b30e..be456324eb 100644
--- a/src/app/components/Toolbar/Features/Contacts/index.tsx
+++ b/src/app/components/Toolbar/Features/Contacts/index.tsx
@@ -10,6 +10,7 @@ import { selectContactsList } from 'app/state/contacts/selectors'
import { selectUnlockedStatus } from 'app/state/selectUnlockedStatus'
import { ContactAccount } from './ContactAccount'
import { AddContact } from './AddContact'
+import { ScrollableContainer } from '../ScrollableContainer'
import { layerScrollableAreaHeight } from '../layer'
type ContactsListEmptyStateProps = {
@@ -71,16 +72,11 @@ export const Contacts = ({ closeHandler }: ContactsProps) => {
)}
{!!contacts.length && (
-
+
{contacts.map(contact => (
))}
-
+
)}