Skip to content

Commit

Permalink
fix: disable side nav item tooltip on small screen (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhartley authored Jan 19, 2023
1 parent 126619b commit 86d62fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/nav/NavSideItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const noUserVisual = computed(() => isHydrated.value && props.userOnly && !curre
:tabindex="noUserDisable ? -1 : null"
@click="$scrollToTop"
>
<CommonTooltip :disabled="!isMediumScreen" :content="text" placement="right">
<CommonTooltip :disabled="!isMediumOrLargeScreen" :content="text" placement="right">
<div
flex items-center gap4
w-fit rounded-3
Expand Down
1 change: 1 addition & 0 deletions composables/screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export const breakpoints = useBreakpoints(breakpointsTailwind)

export const isSmallScreen = breakpoints.smallerOrEqual('md')
export const isMediumScreen = breakpoints.smallerOrEqual('lg')
export const isMediumOrLargeScreen = breakpoints.between('sm', 'xl')

0 comments on commit 86d62fd

Please sign in to comment.