Skip to content

Commit 3018160

Browse files
authored
Merge pull request #681 from glints-dev/hotfix/gallery-wide-image-mobile-view
fix(gallery): change image width to 100% in carousel mode
2 parents 3dffb0b + 75ca075 commit 3018160

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Display/Gallery/GalleryStyle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const GalleryImageWrapper = styled.div`
6464
6565
img {
6666
height: 50vh;
67-
width: auto;
67+
width: 100%;
6868
object-fit: contain;
6969
}
7070
`;

src/Display/Gallery/__snapshots__/Gallery.test.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ exports[`<Gallery /> active item click on gallery item 1`] = `
232232
233233
.c13 img {
234234
height: 50vh;
235-
width: auto;
235+
width: 100%;
236236
object-fit: contain;
237237
}
238238
@@ -888,7 +888,7 @@ exports[`<Gallery /> active item click on gallery thumbnail 1`] = `
888888
889889
.c13 img {
890890
height: 50vh;
891-
width: auto;
891+
width: 100%;
892892
object-fit: contain;
893893
}
894894
@@ -2242,7 +2242,7 @@ exports[`<Gallery /> rendering should match snapshot when slider is shown 1`] =
22422242
22432243
.c13 img {
22442244
height: 50vh;
2245-
width: auto;
2245+
width: 100%;
22462246
object-fit: contain;
22472247
}
22482248

0 commit comments

Comments
 (0)