Skip to content

Commit c2029ab

Browse files
committed
chore(clear): moved clear button to right
1 parent 6dc8382 commit c2029ab

File tree

1 file changed

+62
-8
lines changed

1 file changed

+62
-8
lines changed

pages/v2/index.vue

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,18 @@
3737
aria-label="Beautify entered text"
3838
type="button"
3939
title="Beautify"
40-
class="absolute p-2 transition-all rounded-sm top-16 right-3 aspect-square dark:hover:bg-slate-600 dark:bg-slate-600/50 hover:bg-slate-300 bg-gray-300/50"
40+
class="
41+
absolute
42+
p-2
43+
transition-all
44+
rounded-sm
45+
top-16
46+
right-3
47+
aspect-square
48+
dark:hover:bg-slate-600 dark:bg-slate-600/50
49+
hover:bg-slate-300
50+
bg-gray-300/50
51+
"
4152
@click="
4253
lhsEditor.trigger('editor', 'editor.action.formatDocument')
4354
"
@@ -77,7 +88,18 @@
7788
aria-label="Beautify entered text"
7889
type="button"
7990
title="Beautify"
80-
class="absolute p-2 transition-all rounded-sm top-16 right-3 aspect-square dark:hover:bg-slate-600 dark:bg-slate-600/50 hover:bg-slate-300 bg-gray-300/50"
91+
class="
92+
absolute
93+
p-2
94+
transition-all
95+
rounded-sm
96+
top-16
97+
right-3
98+
aspect-square
99+
dark:hover:bg-slate-600 dark:bg-slate-600/50
100+
hover:bg-slate-300
101+
bg-gray-300/50
102+
"
81103
@click="
82104
rhsEditor.trigger('editor', 'editor.action.formatDocument')
83105
"
@@ -97,12 +119,27 @@
97119
</button>
98120
</div>
99121
</section>
100-
<div
101-
class="flex self-end justify-center flex-grow-0 w-full gap-4 mt-4 text-center "
102-
>
122+
<div class="relative flex justify-center flex-grow-0 w-full gap-4 mt-4">
103123
<button
104124
id="submitButton"
105-
class="inline-flex items-center justify-center w-48 gap-4 px-4 py-2 transition-transform transform bg-blue-600 rounded-md shadow-lg outline-none text-gray-50 focus:ring-4 active:scale-y-75"
125+
class="
126+
inline-flex
127+
items-center
128+
justify-center
129+
w-40
130+
gap-4
131+
px-4
132+
py-2
133+
transition-transform
134+
transform
135+
bg-blue-600
136+
rounded-md
137+
shadow-lg
138+
outline-none
139+
text-gray-50
140+
focus:ring-4
141+
active:scale-y-75
142+
"
106143
aria-label="Click here to compare the inputted text blocks"
107144
>
108145
Compare
@@ -122,8 +159,25 @@
122159
</span>
123160
</button>
124161
<button
125-
id="submitButton"
126-
class="inline-flex items-center justify-center w-48 gap-4 px-4 py-2 text-gray-800 transition-transform transform bg-yellow-300 rounded-md shadow-lg outline-none focus:ring-4 active:scale-y-75"
162+
class="
163+
absolute
164+
right-0
165+
inline-flex
166+
items-center
167+
justify-center
168+
gap-4
169+
px-4
170+
py-2
171+
text-gray-800
172+
transition-transform
173+
transform
174+
bg-yellow-300
175+
rounded-md
176+
shadow-lg
177+
outline-none
178+
focus:ring-4
179+
active:scale-y-75
180+
"
127181
aria-label="Click here to clear all the inputs"
128182
type="button"
129183
@click="clear"

0 commit comments

Comments
 (0)