refactor: autofocus can be disabled in smart input hopp ui component (#3273)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Joel Jacob Stephen
2023-08-22 20:10:41 +05:30
committed by GitHub
parent 3c3fb1e4a9
commit ac60843183
6 changed files with 34 additions and 20 deletions

View File

@@ -23,7 +23,7 @@
<div v-else class="space-y-8">
<div
class="h-24 rounded bg-primaryLight -mb-11 md:h-32"
style="background-image: url(&quot;/images/cover.svg&quot;)"
style="background-image: url(/images/cover.svg)"
></div>
<div class="flex flex-col justify-between px-4 space-y-8 md:flex-row">
<div class="flex items-end">
@@ -102,6 +102,7 @@
</label>
<HoppSmartInput
v-model="displayName"
:autofocus="false"
styles="mt-2 md:max-w-sm"
:placeholder="`${t('settings.profile_name')}`"
>
@@ -124,6 +125,7 @@
</label>
<HoppSmartInput
v-model="emailAddress"
:autofocus="false"
styles="flex mt-2 md:max-w-sm"
:placeholder="`${t('settings.profile_name')}`"
>

View File

@@ -7,6 +7,7 @@
<HoppSmartInput
v-model="url"
type="url"
:autofocus="false"
styles="!inline-flex flex-1 space-x-2"
input-styles="w-full px-4 py-2 border rounded !bg-primaryLight border-divider text-secondaryDark"
:placeholder="`${t('websocket.url')}`"