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} - + 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 => ( ))} - + )}