react-infinite-scroll-component icon indicating copy to clipboard operation
react-infinite-scroll-component copied to clipboard

Add ability to style `outerdiv` inline and/or with className

Open benmneb opened this issue 3 years ago • 2 comments

This will close https://github.com/ankeetmaini/react-infinite-scroll-component/issues/180

I can't implement it locally (don't know how) but all tests passed and it looks good to me... the only problem might be conflicting overflow: ... inline styles on the outerdiv when this.props.pullDownToRefresh && this.props.height is true and someone also manually adds an overflow style. See:

const outerDivStyle =
      this.props.pullDownToRefresh && this.props.height
        ? { overflow: 'auto', ...this.props.outerDivStyle }
        : { ...this.props.outerDivStyle };

🤷‍♂️

benmneb avatar Sep 20 '21 09:09 benmneb

Any Updates on this? Would be great to have.

sepehr500 avatar Jan 31 '22 21:01 sepehr500

Is this deployed?

s0-david avatar Jun 16 '22 06:06 s0-david

when using tailwind with this, you can manually add tailwind styling to globals.css

.infinite-scroll-component__outerdiv {
  @apply w-full;
}

But I :+1: it would be better with simply a prop

arnotixe avatar Jun 21 '23 16:06 arnotixe