Skip to content

Commit 082492d

Browse files
authored
Merge pull request #68 from mAAdhaTTah/apply-min-height-vertical-only
Conditionalize the min height to vertical mode
2 parents 7315e8a + 856b4a9 commit 082492d

File tree

1 file changed

+1
-1
lines changed
  • src/react-elastic-carousel/components/styled

1 file changed

+1
-1
lines changed

src/react-elastic-carousel/components/styled/Slider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default styled.div`
5151
position: absolute;
5252
display: flex;
5353
flex-direction: ${({ verticalMode }) => (verticalMode ? "column" : "row")};
54-
min-height: 100%;
54+
${({ verticalMode }) => (verticalMode ? "min-height: 100%;" : "")}
5555
transition: ${calcTransition};
5656
left: ${calcLeft};
5757
right: ${calcRight};

0 commit comments

Comments
 (0)