Skip to content

Commit

Permalink
Merge pull request #10 from emppu-dev/dev
Browse files Browse the repository at this point in the history
fix: buttons overflowing on mobile
  • Loading branch information
emppu-dev authored Aug 1, 2024
2 parents 55871f6 + 89d785c commit 444d9a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/timer/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ https://raw.githubusercontent.com/emppu-dev/getfit/main/LICENSE
</div>
</div>
</CardContent>
<CardFooter class="flex justify-between">
<Button on:click={handleButtonClick} variant="default">
<CardFooter class="flex justify-between flex-col space-y-2 sm:flex-row sm:space-x-2 sm:space-y-0">
<Button on:click={handleButtonClick} variant="default" class="w-full sm:w-auto">
{#if !isRunning && !isPaused}
<Play class="mr-2 h-4 w-4" />
Start
Expand All @@ -140,11 +140,11 @@ https://raw.githubusercontent.com/emppu-dev/getfit/main/LICENSE
Resume
{/if}
</Button>
<Button on:click={reset} variant="destructive">
<Button on:click={reset} variant="destructive" class="w-full sm:w-auto">
<RotateCcw class="mr-2 h-4 w-4" />
Reset
</Button>
<Button variant="outline" href="/dashboard">
<Button variant="outline" href="/dashboard" class="w-full sm:w-auto">
<ArrowLeft class="mr-2 h-4 w-4" />
Back to Dashboard
</Button>
Expand Down

0 comments on commit 444d9a4

Please sign in to comment.