From 7444963fec5f7614282b95ca2660432e29280721 Mon Sep 17 00:00:00 2001 From: apanizo Date: Wed, 31 Oct 2018 12:08:43 +0100 Subject: [PATCH] Auto height while list is loading #73 --- src/components/Modal/index.jsx | 3 +- .../safe/component/Balances/Tokens/index.jsx | 53 +++++++++++-------- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/src/components/Modal/index.jsx b/src/components/Modal/index.jsx index 0602ea75..6e82e33e 100644 --- a/src/components/Modal/index.jsx +++ b/src/components/Modal/index.jsx @@ -29,7 +29,8 @@ const styles = () => ({ '&:focus': { outline: 'none', }, - display: 'grid', + display: 'flex', + flexDirection: 'column', }, }) diff --git a/src/routes/safe/component/Balances/Tokens/index.jsx b/src/routes/safe/component/Balances/Tokens/index.jsx index 3e1e6f09..32316156 100644 --- a/src/routes/safe/component/Balances/Tokens/index.jsx +++ b/src/routes/safe/component/Balances/Tokens/index.jsx @@ -6,6 +6,7 @@ import SearchBar from 'material-ui-search-bar' import { withStyles } from '@material-ui/core/styles' import MuiList from '@material-ui/core/List' import Img from '~/components/layout/Img' +import Block from '~/components/layout/Block' import ListItem from '@material-ui/core/ListItem' import ListItemIcon from '@material-ui/core/ListItemIcon' import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction' @@ -24,6 +25,9 @@ import { lg, md, sm, xs, mediumFontSize, border } from '~/theme/variables' import { type Token } from '~/routes/tokens/store/model/token' const styles = () => ({ + root: { + minHeight: '132px', + }, heading: { padding: `${md} ${lg}`, justifyContent: 'space-between', @@ -53,6 +57,7 @@ const styles = () => ({ list: { overflow: 'hidden', overflowY: 'scroll', + padding: 0, }, token: { minHeight: '50px', @@ -114,29 +119,31 @@ class Tokens extends React.Component { return ( - - Manage Tokens - - - - - - - - } - /> - - - - - - + + + Manage Tokens + + + + + + + + } + /> + + + + + + + {tokens.map((token: Token) => (