mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
Merge pull request #24 from web3privacy/dw/form
refactor: improvements v2
This commit is contained in:
commit
c1441d4994
8 changed files with 23 additions and 29 deletions
|
@ -1,7 +0,0 @@
|
|||
export default defineAppConfig({
|
||||
github: {
|
||||
appId: 0,
|
||||
privateKey: '',
|
||||
installationId: 0,
|
||||
},
|
||||
})
|
|
@ -106,7 +106,7 @@ defineExpose({
|
|||
hover:text-app-black
|
||||
class="text-app-black/50 text-16px hidden"
|
||||
lg="block"
|
||||
>Etherscan
|
||||
>Link
|
||||
</NuxtLink>
|
||||
</template>
|
||||
</ProjectCreateComponentsItem>
|
||||
|
|
|
@ -42,7 +42,7 @@ const model = defineModel<string>()
|
|||
flex
|
||||
flex-col
|
||||
gap-8px
|
||||
lg="flex flex-row gap-24px"
|
||||
lg="flex flex-row gap-24px items-center"
|
||||
relative
|
||||
>
|
||||
<div v-bind="$attrs">
|
||||
|
|
|
@ -58,7 +58,7 @@ const selectedValue = useVModel(props, 'modelValue', emits)
|
|||
</span>
|
||||
<span class="absolute inset-y-0 right-0 flex items-center pr-2">
|
||||
<UnoIcon
|
||||
i-heroicons-solid-chevron-down
|
||||
i-ic-baseline-arrow-drop-down
|
||||
class="text-app-white"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
|
|
|
@ -131,7 +131,7 @@ function addOption() {
|
|||
</div>
|
||||
<span class="absolute inset-y-0 right-0 flex items-center pr-2">
|
||||
<UnoIcon
|
||||
i-heroicons-solid-chevron-down
|
||||
i-ic-baseline-arrow-drop-down
|
||||
class="text-app-white"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
|
|
|
@ -53,4 +53,13 @@ export default defineNuxtConfig({
|
|||
lodash: {
|
||||
prefix: '_',
|
||||
},
|
||||
runtimeConfig: {
|
||||
app: {
|
||||
github: {
|
||||
appId: 0,
|
||||
privateKey: '',
|
||||
installationId: 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -226,6 +226,7 @@ const transitionDone = ref(false)
|
|||
leading-28px
|
||||
bg-app-bg-dark_grey
|
||||
onfocus="this.style.width = 0; this.style.width = this.scrollWidth + 2 + 'px';"
|
||||
@blur="toggleEdit()"
|
||||
>
|
||||
<h2
|
||||
v-else
|
||||
|
@ -235,16 +236,11 @@ const transitionDone = ref(false)
|
|||
>
|
||||
{{ name }}
|
||||
</h2>
|
||||
<button @click="toggleEdit()">
|
||||
<button
|
||||
v-if="!isEditing"
|
||||
@click="toggleEdit()"
|
||||
>
|
||||
<UnoIcon
|
||||
v-if="isEditing"
|
||||
text-24px
|
||||
class="text-app-white/30"
|
||||
hover:text-app-white
|
||||
i-heroicons-solid-check
|
||||
/>
|
||||
<UnoIcon
|
||||
v-else
|
||||
text-20px
|
||||
class="text-app-white/30"
|
||||
hover:text-app-white
|
||||
|
|
|
@ -211,6 +211,7 @@ const transitionDone = ref(false)
|
|||
leading-28px
|
||||
bg-app-bg-dark_grey
|
||||
onfocus="this.style.width = 0; this.style.width = this.scrollWidth + 2 + 'px';"
|
||||
@blur="toggleEdit()"
|
||||
>
|
||||
<h2
|
||||
v-else
|
||||
|
@ -220,16 +221,11 @@ const transitionDone = ref(false)
|
|||
>
|
||||
{{ name }}
|
||||
</h2>
|
||||
<button @click="toggleEdit()">
|
||||
<button
|
||||
v-if="!isEditing"
|
||||
@click="toggleEdit()"
|
||||
>
|
||||
<UnoIcon
|
||||
v-if="isEditing"
|
||||
text-24px
|
||||
class="text-app-white/30"
|
||||
hover:text-app-white
|
||||
i-heroicons-solid-check
|
||||
/>
|
||||
<UnoIcon
|
||||
v-else
|
||||
text-20px
|
||||
class="text-app-white/30"
|
||||
hover:text-app-white
|
||||
|
|
Loading…
Reference in a new issue