Skip to content

Commit

Permalink
fix: disable selecting elements in navbar (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
sechi747 committed Jan 15, 2023
1 parent 185bfd1 commit 92b9746
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/nav/NavSideItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const noUserVisual = computed(() => isHydrated.value && props.userOnly && !curre
<div :class="icon" text-xl />
</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>
</div>
</CommonTooltip>
Expand Down
1 change: 1 addition & 0 deletions components/nav/NavTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ router.afterEach(() => {
flex items-end gap-4
py2 px-5
text-2xl
select-none
focus-visible:ring="2 current"
to="/"
external
Expand Down
1 change: 1 addition & 0 deletions components/search/SearchWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const activate = () => {
bg-transparent
outline="focus:none"
pe-4
select-none
:placeholder="isHydrated ? t('nav.search') : ''"
pb="1px"
placeholder-text-secondary
Expand Down
2 changes: 1 addition & 1 deletion components/user/UserSignInEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<p text-sm text-secondary>
{{ $t('user.sign_in_desc') }}
</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') }}
</button>
</div>
Expand Down

0 comments on commit 92b9746

Please sign in to comment.