Skip to content

Commit 3c65986

Browse files
committed
Move sprite highlight box back inside stage border
I'm not sure why I thought the sprite highlight box extended outside the stage
1 parent 99c2917 commit 3c65986

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/components/stage/stage.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ stage doesn't "spill" out from under its rounded corners. instead, shift these o
6868
}
6969

7070
.monitor-wrapper,
71+
.frame-wrapper,
7172
.green-flag-overlay-wrapper {
7273
position: absolute;
7374
top: 0;

src/components/stage/stage.jsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ const StageComponent = props => {
6666
stageSize={stageDimensions}
6767
/>
6868
</Box>
69-
69+
<Box className={styles.frameWrapper}>
70+
<TargetHighlight
71+
className={styles.frame}
72+
stageHeight={stageDimensions.height}
73+
stageWidth={stageDimensions.width}
74+
/>
75+
</Box>
7076
{isColorPicking && colorInfo ? (
7177
<Loupe colorInfo={colorInfo} />
7278
) : null}
@@ -79,11 +85,6 @@ const StageComponent = props => {
7985
{[styles.fullScreen]: isFullScreen}
8086
)}
8187
>
82-
<TargetHighlight
83-
className={styles.frame}
84-
stageHeight={stageDimensions.height}
85-
stageWidth={stageDimensions.width}
86-
/>
8788
<div
8889
className={styles.stageBottomWrapper}
8990
style={{

0 commit comments

Comments
 (0)