Skip to content
Snippets Groups Projects
Commit 0a741b10 authored by Moran T's avatar Moran T
Browse files

Adding constraint on min height for large stage

Should help with smaller screen sizes, where the ratio is different (like some chromebooks)
parent c4ab9d51
No related branches found
No related tags found
No related merge requests found
......@@ -144,16 +144,21 @@ const GUIComponent = props => {
</Box>
<Box className={styles.stageWrapper}>
{/* eslint-disable arrow-body-style */}
<MediaQuery minWidth={layout.fullSizeMinWidth}>{isFullSize => {
return isRendererSupported ? (
<Stage
height={isFullSize ? layout.fullStageHeight : layout.smallerStageHeight}
shrink={0}
vm={vm}
width={isFullSize ? layout.fullStageWidth : layout.smallerStageWidth}
/>
) : null;
}}</MediaQuery>
<MediaQuery
minHeight={layout.fullSizeMinHeight}
minWidth={layout.fullSizeMinWidth}
>
{isFullSize => {
return isRendererSupported ? (
<Stage
height={isFullSize ? layout.fullStageHeight : layout.smallerStageHeight}
shrink={0}
vm={vm}
width={isFullSize ? layout.fullStageWidth : layout.smallerStageWidth}
/>
) : null;
}}
</MediaQuery>
{/* eslint-enable arrow-body-style */}
</Box>
<Box className={styles.targetWrapper}>
......
......@@ -51,7 +51,10 @@ class SpriteInfo extends React.Component {
</div>
<div className={styles.group}>
<MediaQuery minWidth={layout.fullSizeMinWidth}>
<MediaQuery
minHeight={layout.fullSizeMinHeight}
minWidth={layout.fullSizeMinWidth}
>
<div className={styles.iconWrapper}>
<img
aria-hidden="true"
......@@ -74,7 +77,10 @@ class SpriteInfo extends React.Component {
</div>
<div className={styles.group}>
<MediaQuery minWidth={layout.fullSizeMinWidth}>
<MediaQuery
minHeight={layout.fullSizeMinHeight}
minWidth={layout.fullSizeMinWidth}
>
<div className={styles.iconWrapper}>
<img
aria-hidden="true"
......@@ -99,7 +105,10 @@ class SpriteInfo extends React.Component {
<div className={classNames(styles.row, styles.rowSecondary)}>
<div className={styles.group}>
<MediaQuery minWidth={layout.fullSizeMinWidth}>
<MediaQuery
minHeight={layout.fullSizeMinHeight}
minWidth={layout.fullSizeMinWidth}
>
<Label
secondary
text="Show"
......
......@@ -4,5 +4,6 @@ export default {
smallerStageWidth: 480 * 0.85,
smallerStageHeight: 360 * 0.85,
fullSizeMinWidth: 1096,
fullSizeMinHeight: 821, // Adding 7% to 768.
fullSizePaintMinWidth: 1250
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment