Skip to content
Snippets Groups Projects
Commit e31ddeb1 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Fix target area max-width problem

I don't love this solution, but I remember not being able to figure out a way to not specify the max width because it is needed in order for the flowing to work. Without the max-width, the sprite tiles try to be in a row, pushing over everything else.
parent 45ebe271
No related branches found
No related tags found
No related merge requests found
......@@ -163,11 +163,23 @@
*/
display: flex;
flex-direction: column;
}
/* Fix the max width to max stage size (defined in layout_constants.js) + gutter size */
.stage-and-target-wrapper.large {
/* Fix the max width to max large stage size (defined in layout_constants.js) + gutter size */
max-width: calc(480px + calc($space * 2));
}
.stage-and-target-wrapper.large-constrained {
/* Fix the max width to max largeConstrained stage size (defined in layout_constants.js) + gutter size */
max-width: calc(408px + calc($space * 2));
}
.stage-and-target-wrapper.small {
/* Fix the max width to max small stage size (defined in layout_constants.js) + gutter size */
max-width: calc(240px + calc($space * 2));
}
.target-wrapper {
display: flex;
flex-grow: 1;
......
......@@ -240,7 +240,7 @@ const GUIComponent = props => {
) : null}
</Box>
<Box className={styles.stageAndTargetWrapper}>
<Box className={classNames(styles.stageAndTargetWrapper, styles[stageSize])}>
<StageWrapper
isRendererSupported={isRendererSupported}
stageSize={stageSize}
......
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