Implement all staging logic in terms of stageSize
Pass a `stageSize` property down from a centralized `MediaQuery` in the GUI component, and control the size of the stage and all surrounding elements based on that value. Note that this is a pure property and is not stored in the Redux state, since we gain access to the results of the media query during `render()` and we shouldn't change Redux state during `render()`. Some stage-adjacent elements don't yet react correctly to the smallest stage size.
Showing
- src/components/gui/gui.jsx 166 additions, 143 deletionssrc/components/gui/gui.jsx
- src/components/stage-header/stage-header.jsx 32 additions, 17 deletionssrc/components/stage-header/stage-header.jsx
- src/components/stage-wrapper/stage-wrapper.jsx 13 additions, 12 deletionssrc/components/stage-wrapper/stage-wrapper.jsx
- src/components/stage/stage.jsx 13 additions, 16 deletionssrc/components/stage/stage.jsx
- src/containers/stage-header.jsx 3 additions, 2 deletionssrc/containers/stage-header.jsx
- src/containers/stage-wrapper.jsx 2 additions, 0 deletionssrc/containers/stage-wrapper.jsx
- src/containers/stage.jsx 4 additions, 5 deletionssrc/containers/stage.jsx
- src/lib/layout-constants.js 34 additions, 4 deletionssrc/lib/layout-constants.js
- src/lib/screen-utils.js 70 additions, 22 deletionssrc/lib/screen-utils.js
- src/reducers/stage-size.js 4 additions, 9 deletionssrc/reducers/stage-size.js
Please register or sign in to comment