Skip to content

Commit

Permalink
fix(front): pin component size on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
aripot007 committed Jun 24, 2024
1 parent 1cce7fd commit 83dff44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/lib/components/client/pin.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="grid grid-cols-3 gap-2">
{#each Array.from({ length: 9 }, (_, i) => i + 1) as i}
<button
class="w-36 h-32 text-4xl border-2 text-white border-gray-300 rounded-xl hover:bg-gray-200/[0.5] active:bg-gray-200/[0.5]"
class="w-24 h-20 md:w-36 md:h-32 text-4xl border-2 text-white border-gray-300 rounded-xl hover:bg-gray-200/[0.5] active:bg-gray-200/[0.5]"
on:click={() => {
temp_pin += i;
if (temp_pin.length === 20) {
Expand All @@ -41,15 +41,15 @@
</button>
{/each}
<button
class="w-36 h-32 text-4xl rounded-xl bg-yellow-600 text-white"
class="w-24 h-20 md:w-36 md:h-32 text-4xl rounded-xl bg-yellow-600 text-white"
on:click={() => {
temp_pin = temp_pin.slice(0, -1);
}}
>
</button>
<button
class="w-36 h-32 text-4xl border-2 rounded-xl text-white border-gray-300 hover:bg-gray-200 active:bg-gray-200"
class="w-24 h-20 md:w-36 md:h-32 text-4xl border-2 rounded-xl text-white border-gray-300 hover:bg-gray-200 active:bg-gray-200"
on:click={() => {
temp_pin += 0;
if (temp_pin.length === 20) {
Expand All @@ -62,7 +62,7 @@
0
</button>
<button
class="w-36 h-32 text-xl rounded-xl text-white bg-green-600 active:bg-green-800"
class="w-24 h-20 md:w-36 md:h-32 text-xl rounded-xl text-white bg-green-600 active:bg-green-800"
on:click={() => {
console.log('g' + temp_pin)
callback(temp_pin);
Expand Down

0 comments on commit 83dff44

Please sign in to comment.