Skip to content

Commit 4935e50

Browse files
authored
Fix stage header size when stage width <480 (#1042)
1 parent 9519534 commit 4935e50

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ 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+
(stageSizeMode === STAGE_SIZE_MODES.full ||
200+
stageSizeMode === STAGE_SIZE_MODES.large) &&
201+
stageDimensions.width <= 480
202+
? 482 : stageDimensions.width + 2}px`
203+
}}
199204
>
200205
<Box className={styles.stageMenuWrapper}>
201206
<Controls

0 commit comments

Comments
 (0)