Skip to content

Commit 88bc3a3

Browse files
authored
minor styling change in stage-header.jsx
1 parent eb94860 commit 88bc3a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/stage-header/stage-header.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,14 @@ const StageHeaderComponent = function (props) {
195195
<Box
196196
className={styles.stageHeaderWrapper}
197197
// + 2 px because the stage will have 2 pixels of border around it
198-
style={{minWidth: `${stageDimensions.width + 2}px`}}
198+
style={{minWidth: `${
199+
stageSize === STAGE_DISPLAY_SIZES.constrained
200+
? STAGE_DISPLAY_SCALE_METADATA.constrained.scale * Math.max(stageDimensions.widthDefault, FIXED_WIDTH) + 2
201+
: (stageSizeMode === STAGE_SIZE_MODES.full || stageSizeMode === STAGE_SIZE_MODES.large) && stageDimensions.width <= FIXED_WIDTH
202+
? FIXED_WIDTH + 2
203+
: stageDimensions.width + 2
204+
}px`
205+
}}
199206
>
200207
<Box className={styles.stageMenuWrapper}>
201208
<Controls

0 commit comments

Comments
 (0)