Skip to content

Commit

Permalink
fix(date-picker): resolve width clipping issue on 90/110% zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
awesome-pro committed Jul 5, 2024
1 parent ec7c417 commit 1edb838
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-bats-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/date-picker": patch
---

Fixed bug of date-picker width clipped when zoom 90%
4 changes: 2 additions & 2 deletions packages/core/theme/src/components/date-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const datePicker = tv({
selectorButton: "-mr-2 text-inherit",
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
popoverContent: "p-0 w-full",
calendar: "w-[var(--calendar-width)] shadow-none",
calendarContent: "w-[var(--calendar-width)]",
calendar: "w-[256px] shadow-none",
calendarContent: "w-[256px]",
timeInputLabel: "font-medium",
timeInput: "px-5 pb-4 flex-wrap gap-x-6",
},
Expand Down

0 comments on commit 1edb838

Please sign in to comment.