better graph height

main
Joost Wooning 2022-03-15 17:24:26 +01:00
parent b6a44d6d81
commit 05e6e6d916
2 changed files with 1 additions and 2 deletions

View File

@ -139,7 +139,7 @@ export default class CanGraph extends Component {
updateBounds = debounce(() => {
this.view.signal('width', this.state.bounds.width - 90);
this.view.signal('height', 0.4 * (this.state.bounds.width - 90)); // 5:2 aspect ratio
this.view.signal('height', 0.4 * (this.state.bounds.width - 40)); // 5:2 aspect ratio
this.view.run();
}, 100);

View File

@ -258,7 +258,6 @@
&-plot {
$drag-anchor-width: 25px;
$toggle-width: 80px;
min-height: 233px;
&-inner {
background: #fff;
border-bottom: 1px solid $color-grey-30;