Skip to content

Commit

Permalink
Avoid layout shift
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Sep 15, 2023
1 parent baea32e commit 70e25d3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/screens/VisualTests/NoBuild.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const NoBuild = ({
Take an image snapshot of each story to save their "last known good state" as
test baselines.
</CenterText>
<br />
{localBuildProgress ? (
<CenterText style={{ display: "flex", flexDirection: "column", gap: 10, width: 200 }}>
<ProgressTrack>
Expand All @@ -63,10 +62,13 @@ export const NoBuild = ({
<BuildProgressLabel localBuildProgress={localBuildProgress} />
</CenterText>
) : (
<Button small secondary onClick={startDevBuild}>
<Icons icon="play" />
Take snapshots
</Button>
<>
<br />
<Button small secondary onClick={startDevBuild}>
<Icons icon="play" />
Take snapshots
</Button>
</>
)}
</Container>
)}
Expand Down

0 comments on commit 70e25d3

Please sign in to comment.