Skip to content

Commit 444d9a4

Browse files
authoredAug 1, 2024
Merge pull request #10 from emppu-dev/dev
fix: buttons overflowing on mobile
2 parents 55871f6 + 89d785c commit 444d9a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/routes/timer/+page.svelte

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ https://raw.githubusercontent.com/emppu-dev/getfit/main/LICENSE
127127
</div>
128128
</div>
129129
</CardContent>
130-
<CardFooter class="flex justify-between">
131-
<Button on:click={handleButtonClick} variant="default">
130+
<CardFooter class="flex justify-between flex-col space-y-2 sm:flex-row sm:space-x-2 sm:space-y-0">
131+
<Button on:click={handleButtonClick} variant="default" class="w-full sm:w-auto">
132132
{#if !isRunning && !isPaused}
133133
<Play class="mr-2 h-4 w-4" />
134134
Start
@@ -140,11 +140,11 @@ https://raw.githubusercontent.com/emppu-dev/getfit/main/LICENSE
140140
Resume
141141
{/if}
142142
</Button>
143-
<Button on:click={reset} variant="destructive">
143+
<Button on:click={reset} variant="destructive" class="w-full sm:w-auto">
144144
<RotateCcw class="mr-2 h-4 w-4" />
145145
Reset
146146
</Button>
147-
<Button variant="outline" href="/dashboard">
147+
<Button variant="outline" href="/dashboard" class="w-full sm:w-auto">
148148
<ArrowLeft class="mr-2 h-4 w-4" />
149149
Back to Dashboard
150150
</Button>

0 commit comments

Comments
 (0)