Skip to content

Commit baa1d67

Browse files
authored
Merge pull request #13 from opendexnetwork/fix/layout
fix: improve layout for electron app
2 parents 67bc914 + 9533e82 commit baa1d67

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/dashboard/Dashboard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ const Dashboard = (): ReactElement => {
201201
startIcon={<CachedIcon />}
202202
variant="outlined"
203203
className={classes.drawerButton}
204+
fullWidth
204205
onClick={disconnect}
205206
>
206207
Disconnect

src/dashboard/wallet/Wallets.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ type StateType = DashboardContentState & {
2323

2424
const styles = () => {
2525
return createStyles({
26-
itemsContainer: {
27-
flex: 1,
28-
overflowY: "auto",
26+
wrapper: {
27+
height: "100%",
2928
},
3029
});
3130
};
@@ -62,14 +61,14 @@ class Wallets extends DashboardContent<PropsType, StateType> {
6261
const { classes } = this.props;
6362

6463
return (
65-
<Grid container direction="column">
64+
<Grid container direction="column" className={classes.wrapper}>
6665
{this.state.opendexdLocked || this.state.opendexdNotReady ? (
6766
<ViewDisabled
6867
opendexdLocked={this.state.opendexdLocked}
6968
opendexdStatus={this.state.opendexdStatus}
7069
/>
7170
) : (
72-
<Grid container spacing={5} className={classes.itemsContainer}>
71+
<Grid container spacing={5}>
7372
{balances && Object.keys(balances).length ? (
7473
Object.keys(balances).map((currency) => (
7574
<WalletItem

0 commit comments

Comments
 (0)