react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Bug in style

Open Wellers0n opened this issue 7 years ago • 4 comments

I am with this bug on the style.

How resolve it ?

image

Wellers0n avatar Oct 08 '19 19:10 Wellers0n

You can make the container a little bigger using the class:

.react-datepicker-popper { width: 320px; }

The width is just an example, use a size that better fits you

xoche avatar Oct 10 '19 22:10 xoche

in styled component how would be it ?

Wellers0n avatar Oct 11 '19 15:10 Wellers0n

Probably you have something like this:

... // Rest of the code
render(){
    <SDatePicker className={this.props.className} /*More props*/ />
}

Where the SDatePicker is styled like this:

const SDatePicker = styled(DatePicker)`
    & .react-datepicker-popper {
        width: 320px;
    }
`;

xoche avatar Oct 11 '19 17:10 xoche

nice

Wellers0n avatar Oct 11 '19 17:10 Wellers0n