Skip to content

Commit

Permalink
fix: Carousel mobile, tablet에서 인디케이터 동작하지 않는 이슈
Browse files Browse the repository at this point in the history
  • Loading branch information
shinhyojeong committed Jan 31, 2024
1 parent 078875b commit 0166d98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/components/ImageModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,15 @@ const StyledImageContainer = styled.div<StyledImageContainerProps>`
${({ theme }): string => theme.mediaQuery.mobile} {
transform: translate(0, 0);
gap: 0;
transform: ${({ currentIndex }): SerializedStyles =>
css`translate(-${currentIndex * 100}vw, 0);`};
transform: ${({ currentIndex }): string =>
`translate(-${currentIndex * 100}vw, 0)`};
}
${({ theme }): string => theme.mediaQuery.tablet} {
transform: translate(0, 0);
gap: 0;
transform: ${({ currentIndex }): SerializedStyles =>
css`translate(-${currentIndex * 100}vw, 0);`};
transform: ${({ currentIndex }): string =>
`translate(-${currentIndex * 100}vw, 0)`};
}
`

Expand Down

0 comments on commit 0166d98

Please sign in to comment.