diff --git a/src/components/BalanceSummary/index.js b/src/components/BalanceSummary/index.js index 80080c44..78d47a7c 100644 --- a/src/components/BalanceSummary/index.js +++ b/src/components/BalanceSummary/index.js @@ -35,7 +35,7 @@ const BalanceSummary = ({ }: Props) => { const account = accounts.length === 1 ? accounts[0] : undefined return ( - + {({ isAvailable, balanceHistory, balanceStart, balanceEnd }) => !isAvailable ? null : ( @@ -57,7 +57,7 @@ const BalanceSummary = ({ unit={account ? account.unit : null} color={chartColor} data={balanceHistory} - height={250} + height={200} currency={counterValue} tickXScale={selectedTime} renderTickY={val => formatShort(counterValue.units[0], val)} diff --git a/src/components/DashboardPage/index.js b/src/components/DashboardPage/index.js index 4e43c8f1..71e162c9 100644 --- a/src/components/DashboardPage/index.js +++ b/src/components/DashboardPage/index.js @@ -56,8 +56,9 @@ type State = { class DashboardPage extends PureComponent { state = { - selectedTime: 'week', - daysCount: 7, + // save to user preference? + selectedTime: 'month', + daysCount: 30, } onAccountClick = account => this.props.push(`/account/${account.id}`) diff --git a/src/components/base/Chart/helpers.js b/src/components/base/Chart/helpers.js index 3505fba9..e38d5953 100644 --- a/src/components/base/Chart/helpers.js +++ b/src/components/base/Chart/helpers.js @@ -25,7 +25,7 @@ export function generateMargins(hideAxis) { top: hideAxis ? 5 : 10, bottom: hideAxis ? 5 : 30, right: hideAxis ? 5 : 40, - left: hideAxis ? 5 : 80, + left: hideAxis ? 5 : 70, } // FIXME: Forced to "use" margins here to prevent babel/uglify to believe diff --git a/src/main/app.js b/src/main/app.js index 1674026f..4cc4afaf 100644 --- a/src/main/app.js +++ b/src/main/app.js @@ -65,7 +65,7 @@ const defaultWindowOptions = { } function createMainWindow() { - const MIN_HEIGHT = 768 + const MIN_HEIGHT = 500 //768 const MIN_WIDTH = 1024 const savedDimensions = db.getIn('settings', 'window.MainWindow.dimensions', {})