Skip to content

Commit 6b80a01

Browse files
committed
feat: correct font size for workouts on mobile
Signed-off-by: Matt Gleich <git@mattglei.ch>
1 parent 39c7bac commit 6b80a01

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

src/lib/index/sections/workouts/workout.svelte

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
target="_blank"
2626
>
2727
<Scrolling>
28-
<h4>{workout.name}</h4>
28+
<h4 class="workout-name">{workout.name}</h4>
2929
</Scrolling>
3030
<div class="platform-icon">
3131
{#if workout.platform === 'strava'}
@@ -99,6 +99,15 @@
9999
}
100100
101101
@media (max-width: 500px) {
102+
.workout-name {
103+
font-size: 1.4rem;
104+
}
105+
106+
.platform-icon {
107+
width: 19px;
108+
height: 19px;
109+
}
110+
102111
.time {
103112
font-size: 12.5px;
104113
}

src/routes/writing/lcp/cache-status.svelte

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111
</script>
1212

1313
<Card padding="0">
14-
<div class="container">
15-
<div class="header">
16-
<p class="cache-name">{name} Cache</p>
17-
{#if updated}
18-
<p class="online">ONLINE</p>
19-
{:else}
20-
<p class="offline">OFFLINE</p>
21-
{/if}
22-
</div>
14+
<div class="header">
15+
<p class="cache-name">{name} Cache</p>
16+
{#if updated}
17+
<p class="online">ONLINE</p>
18+
{:else}
19+
<p class="offline">OFFLINE</p>
20+
{/if}
2321
</div>
2422
<div class="refresh">
2523
<div class="refresh-icon">
@@ -84,8 +82,8 @@
8482
}
8583
8684
.refresh {
87-
padding: 20px 10px;
88-
padding-bottom: 15px;
85+
padding: 15px 10px;
86+
padding-bottom: 10px;
8987
display: flex;
9088
gap: 10px;
9189
align-items: center;
@@ -103,7 +101,7 @@
103101
104102
.updated {
105103
color: grey;
106-
padding: 5px;
104+
padding-bottom: 5px;
107105
display: flex;
108106
align-items: center;
109107
justify-content: center;

0 commit comments

Comments
 (0)