Skip to content

Commit 235eb80

Browse files
committed
Fix Manage button positioning
1 parent 4ba752b commit 235eb80

1 file changed

Lines changed: 30 additions & 26 deletions

File tree

src/components/workouts-screen.tsx

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,35 @@ export function WorkoutsScreen({
4444
marginBottom: 4,
4545
}}
4646
>
47-
<div
48-
style={{
49-
fontFamily: "var(--mono-font)",
50-
fontSize: 11,
51-
fontWeight: 500,
52-
letterSpacing: 2,
53-
textTransform: "uppercase",
54-
color: "#999",
55-
}}
56-
>
57-
{workouts.length} routines
47+
<div>
48+
<div
49+
style={{
50+
fontFamily: "var(--mono-font)",
51+
fontSize: 11,
52+
fontWeight: 500,
53+
letterSpacing: 2,
54+
textTransform: "uppercase",
55+
color: "#999",
56+
marginBottom: 4,
57+
}}
58+
>
59+
{workouts.length} routines
60+
</div>
61+
<h1
62+
style={{
63+
margin: 0,
64+
fontFamily: "var(--display-font)",
65+
fontSize: 38,
66+
fontWeight: 900,
67+
letterSpacing: -1.4,
68+
color: "#0a0a0a",
69+
lineHeight: 0.95,
70+
}}
71+
>
72+
YOUR
73+
<br />
74+
<span style={{ color: "#ff5a1f" }}>ROUTINES.</span>
75+
</h1>
5876
</div>
5977
<button
6078
onClick={() => setManageMode(!manageMode)}
@@ -69,26 +87,12 @@ export function WorkoutsScreen({
6987
fontWeight: 800,
7088
letterSpacing: 0.8,
7189
textTransform: "uppercase",
90+
alignSelf: "flex-start",
7291
}}
7392
>
7493
{manageMode ? "DONE" : "MANAGE"}
7594
</button>
7695
</div>
77-
<h1
78-
style={{
79-
margin: 0,
80-
fontFamily: "var(--display-font)",
81-
fontSize: 38,
82-
fontWeight: 900,
83-
letterSpacing: -1.4,
84-
color: "#0a0a0a",
85-
lineHeight: 0.95,
86-
}}
87-
>
88-
YOUR
89-
<br />
90-
<span style={{ color: "#ff5a1f" }}>ROUTINES.</span>
91-
</h1>
9296
<div
9397
style={{
9498
marginTop: 10,

0 commit comments

Comments
 (0)