fix: disable selecting elements in navbar (#1147)

zio/stable
sechi 2023-01-15 23:42:16 +08:00 committed by GitHub
parent 185bfd1ee3
commit 92b9746cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -66,7 +66,7 @@ const noUserVisual = computed(() => isHydrated.value && props.userOnly && !curre
<div :class="icon" text-xl /> <div :class="icon" text-xl />
</slot> </slot>
<slot> <slot>
<span block sm:hidden xl:block>{{ isHydrated ? text : '&nbsp;' }}</span> <span block sm:hidden xl:block select-none>{{ isHydrated ? text : '&nbsp;' }}</span>
</slot> </slot>
</div> </div>
</CommonTooltip> </CommonTooltip>

View File

@ -17,6 +17,7 @@ router.afterEach(() => {
flex items-end gap-4 flex items-end gap-4
py2 px-5 py2 px-5
text-2xl text-2xl
select-none
focus-visible:ring="2 current" focus-visible:ring="2 current"
to="/" to="/"
external external

View File

@ -66,6 +66,7 @@ const activate = () => {
bg-transparent bg-transparent
outline="focus:none" outline="focus:none"
pe-4 pe-4
select-none
:placeholder="isHydrated ? t('nav.search') : ''" :placeholder="isHydrated ? t('nav.search') : ''"
pb="1px" pb="1px"
placeholder-text-secondary placeholder-text-secondary

View File

@ -8,7 +8,7 @@
<p text-sm text-secondary> <p text-sm text-secondary>
{{ $t('user.sign_in_desc') }} {{ $t('user.sign_in_desc') }}
</p> </p>
<button btn-solid rounded-3 text-center mt-2 @click="openSigninDialog()"> <button btn-solid rounded-3 text-center mt-2 select-none @click="openSigninDialog()">
{{ $t('action.sign_in') }} {{ $t('action.sign_in') }}
</button> </button>
</div> </div>