Skip to content

Commit

Permalink
fix: hide navigation in "time" mode (shadcn-ui#283)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Hutter <valentin@macbook-pro-de-valentin.home>
  • Loading branch information
valh1996 and Valentin Hutter authored Jan 17, 2024
1 parent 948a9c9 commit 8e7bbe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/www/src/lib/registry/default/ui/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ onMounted(async () => {

<template>
<div class="relative">
<div class="absolute flex justify-between w-full px-4 top-3 z-[1]">
<div v-if="$attrs.mode !== 'time'" class="absolute flex justify-between w-full px-4 top-3 z-[1]">
<button :class="cn(buttonVariants({ variant: 'outline' }), 'h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100')" @click="handleNav('prev')">
<ChevronLeft class="w-4 h-4" />
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ onMounted(async () => {

<template>
<div class="relative">
<div class="absolute flex justify-between w-full px-4 top-3 z-[1]">
<div v-if="$attrs.mode !== 'time'" class="absolute flex justify-between w-full px-4 top-3 z-[1]">
<button :class="cn(buttonVariants({ variant: 'outline' }), 'h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100')" @click="handleNav('prev')">
<ChevronLeftIcon class="w-4 h-4" />
</button>
Expand Down

0 comments on commit 8e7bbe3

Please sign in to comment.