Skip to content

Commit bd9f6cd

Browse files
authored
style: Apply submit button animation to reset and swap buttons (#106)
1 parent 4edd05c commit bd9f6cd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

components/compare-form.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ export function CompareForm({
7070
<input
7171
className="h-11 rounded-lg border border-input bg-background px-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/60 focus:border-transparent"
7272
ref={firstInputRef}
73-
placeholder={t("form.username1") }
73+
placeholder={t("form.username1")}
7474
value={username1}
7575
onChange={(e) => setUsername1(e.target.value)}
7676
/>
7777
<input
7878
className="h-11 rounded-lg border border-input bg-background px-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/60 focus:border-transparent"
79-
placeholder={t("form.username2") }
79+
placeholder={t("form.username2")}
8080
value={username2}
8181
onChange={(e) => setUsername2(e.target.value)}
8282
/>
@@ -97,6 +97,7 @@ export function CompareForm({
9797
disabled={loading}
9898
type="button"
9999
title={t("form.swap")}
100+
className="shadow-sm transition-transform hover:-translate-y-0.5"
100101
>
101102
<ArrowLeftRight className="h-4 w-4" />
102103
</Button>
@@ -105,6 +106,7 @@ export function CompareForm({
105106
disabled={loading}
106107
title={t("form.reset")}
107108
type="button"
109+
className="shadow-sm transition-transform hover:-translate-y-0.5"
108110
>
109111
<RefreshCw className="h-4 w-4" />
110112
</Button>

0 commit comments

Comments
 (0)