Skip to content

Commit 376807d

Browse files
Updates.
1 parent 2a442c3 commit 376807d

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/carousel.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@
7777
}
7878

7979
.carousel-top-arrow {
80-
top: 53px;
80+
top: 23px;
8181
}
8282

8383
.carousel-bottom-arrow {
84-
bottom: 53px;
84+
bottom: 23px;
8585
}
8686

8787
.carousel-top-arrow {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export default class Carousel extends Component {
470470
arrowOffset -= this.props.verticalArrowPadding;
471471
}
472472

473-
const arrowStyle = { ...isVertical && { ...!arrows ? { transform: `translateY(${ arrowOffset }px)` } : { paddingRight: '50px' } } };
473+
const arrowStyle = { ...isVertical && { ...!arrows && { transform: `translateY(${ arrowOffset }px)` } } };
474474

475475
return (
476476
<div className={ classes } style={ containerStyle } ref={ c => { this._containerRef = c; } }>

src/stories/index.stories.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ export const verticalNonInfiniteWithCellPaddingWithDefaultArrows = () =>
7979
{ imgElements }
8080
</Carousel>;
8181

82-
export const verticalNonInfiniteButtonsWithCellPaddingWithDefaultArrows = () =>
83-
<Carousel height='200px' width='200px' cellPadding={ 5 } infinite={ false } arrows={ true }
84-
dots={ false } isVertical={ true } >
85-
{ testButtons }
86-
</Carousel>;
87-
8882
export const verticalNonInfiniteButtonsWithCellPaddingWithCustomArrows = () =>
8983
<Carousel height='450px' width='450px' cellPadding={ 5 } infinite={ false } arrows={ false }
9084
dots={ false } isVertical={ true } verticalArrowPadding={ 30 } controls={ [{

0 commit comments

Comments
 (0)