Skip to content

Commit e4a845f

Browse files
authored
Fix/evoting alignment (#1079)
* fix: fixed the alignment issue in evoting. * feat: added an example.env as next reads env from its own folder and not the root folder. * fix: coderabbit suggestion.
1 parent 1337847 commit e4a845f

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXT_PUBLIC_EVOTING_BASE_URL="http://192.168.0.235:7777"

‎platforms/evoting/client/src/app/(app)/create/page.tsx‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,11 @@ export default function CreatePoll() {
658658
</div>
659659
))}
660660
</div>
661-
<div className="flex justify-end mt-3">
661+
<div className="mt-3">
662662
<Button
663663
type="button"
664664
onClick={addOption}
665-
className="bg-red-50 text-(--crimson) border-(--crimson) border hover:bg-red-100 transition-all duration-200"
665+
className="w-full bg-red-50 text-(--crimson) border-(--crimson) border hover:bg-red-100 transition-all duration-200"
666666
>
667667
<Plus className="w-4 h-4 mr-1" />
668668
Add Option
@@ -676,15 +676,15 @@ export default function CreatePoll() {
676676
</div>
677677

678678
<div className="flex flex-col sm:flex-row gap-4 pt-4">
679-
<Link href="/">
680-
<Button
681-
type="button"
682-
className="flex-1 bg-red-50 text-(--crimson) border-(--crimson) border hover:bg-red-100 transition-all duration-200"
683-
>
679+
<Button
680+
asChild
681+
className="flex-1 bg-red-50 text-(--crimson) border-(--crimson) border hover:bg-red-100 transition-all duration-200"
682+
>
683+
<Link href="/">
684684
<X className="w-4 h-4 mr-2" />
685685
Cancel
686-
</Button>
687-
</Link>
686+
</Link>
687+
</Button>
688688
<Button
689689
type="submit"
690690
className="flex-1 bg-(--crimson) hover:bg-(--crimson-50) hover:text-(--crimson) hover:border-(--crimson) border text-white"

0 commit comments

Comments
 (0)