Skip to content

Commit

Permalink
fix: viewport layout with visible interpretations panel (#323) (#325)
Browse files Browse the repository at this point in the history
* set flex-basis on main-center to allocate remaining space for main-right

* change main-right bg color to make SV interpretations look better
  • Loading branch information
janhenrikoverland committed Oct 1, 2019
1 parent ab968a0 commit 725009c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/app/src/components/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ body {
flex-grow: 1;
}

.flex-basis-0 {
flex-basis: 0%;
}

/* Headerbar */

.section-headerbar {
Expand Down Expand Up @@ -59,7 +63,7 @@ body {
.main-right {
flex: 1 1 0%;
max-width: 380px;
background-color: #f4f6f8;
background-color: #f0f2f4;
overflow-y: auto;
overflow-x: hidden;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class App extends Component {
<div className="main-left">
<DimensionsPanel />
</div>
<div className="main-center flex-grow-1 flex-ct flex-dir-col">
<div className="main-center flex-grow-1 flex-basis-0 flex-ct flex-dir-col">
<div className="main-center-layout">
<Layout />
</div>
Expand Down

0 comments on commit 725009c

Please sign in to comment.