Skip to content

Commit 71a22bc

Browse files
committed
refactor: improve button ui
1 parent 32c46e3 commit 71a22bc

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

components/navbar/Navbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function editVersion() {
118118
nav-button
119119
@click="toggleOutput()"
120120
>
121-
<div i-ri:tree-line />
121+
<div i-ri:node-tree />
122122
</button>
123123
<button title="Toggle Dark Mode" nav-button @click="toggleDark">
124124
<div i-ri:sun-line dark:i-ri:moon-line />

components/output/Container.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ watchEffect(() => {
1919
})
2020
2121
const tabClass =
22-
'w-20 border rounded p1 hover:bg-gray hover:bg-opacity-20 hover:border-white/20'
22+
'border rounded-full w-7 h-7 items-center flex justify-center hover:bg-gray hover:bg-opacity-20 hover:border-white/20'
2323
const tabSelectedClass = 'bg-$c-text-base! text-$c-bg-base'
2424
2525
const errorString = computed(() => {
@@ -85,13 +85,13 @@ watch(outputView, (view) => {
8585
:class="[tabClass, outputView === 'tree' && tabSelectedClass]"
8686
@click="toggleView('tree')"
8787
>
88-
Tree
88+
<div i-ri:node-tree />
8989
</button>
9090
<button
9191
:class="[tabClass, outputView === 'json' && tabSelectedClass]"
9292
@click="toggleView('json')"
9393
>
94-
JSON
94+
<div i-ri:braces-line />
9595
</button>
9696
</div>
9797
<label>
@@ -115,14 +115,6 @@ watch(outputView, (view) => {
115115
/>
116116
Hide location data
117117
</label>
118-
<label>
119-
Hide keys:
120-
<input
121-
v-model="hideKeysValue"
122-
type="input"
123-
placeholder="field1, field2, ..."
124-
/>
125-
</label>
126118
<button
127119
flex="~ y-center"
128120
gap1
@@ -137,6 +129,14 @@ watch(outputView, (view) => {
137129
<div i-ri:printer-line />
138130
Print in Console
139131
</button>
132+
<label>
133+
Hide keys:
134+
<input
135+
v-model="hideKeysValue"
136+
type="input"
137+
placeholder="field1, field2, ..."
138+
/>
139+
</label>
140140
</div>
141141
<div flex="~ 1" min-h-0 min-w-0>
142142
<Loading v-if="loading">

0 commit comments

Comments
 (0)