Skip to content

Commit

Permalink
fix(date-range-picker): fixed input overflow #3037
Browse files Browse the repository at this point in the history
  • Loading branch information
shrinidhi.upadhyaya committed May 25, 2024
1 parent fa26ce0 commit 8dbb37a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export function useDateRangePicker<T extends DateValue>({
style: {
...props.style,
maxWidth: "fit-content",
flexShrink: 0,
},
className: dateInputSlots.input({
class: clsx(classNames?.input, props?.className),
Expand Down
4 changes: 2 additions & 2 deletions packages/core/theme/src/components/date-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {tv} from "../utils/tv";
*/
const dateInput = tv({
slots: {
base: "group flex flex-col",
base: "group flex flex-col overflow-hidden",
label: [
"block subpixel-antialiased text-small text-default-600",
// isRequired=true
Expand All @@ -21,7 +21,7 @@ const dateInput = tv({
"relative px-3 gap-3 w-full inline-flex flex-row items-center",
"cursor-text tap-highlight-transparent shadow-sm",
],
input: "flex h-full gap-x-0.5 w-full font-normal",
input: "flex h-full gap-x-0.5 w-full font-normal overflow-hidden",
innerWrapper: [
"flex items-center text-default-400 w-full gap-x-2 h-6",
// isInValid=true
Expand Down

0 comments on commit 8dbb37a

Please sign in to comment.