Skip to content

Commit c3b1614

Browse files
committed
(fix) media preview position
1 parent b337328 commit c3b1614

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/MediaPreview/MediaPreview.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ $media-preview-width-sm: 20px;
99
z-index: 99;
1010
width: 100vw;
1111
height: 100vh;
12+
display: flex;
13+
align-items: center;
1214
background-color: rgba(0, 0, 0, 0.8);
1315
outline: none;
1416

1517
.vac-media-preview-container {
1618
height: calc(100% - #{$media-preview-height * 2});
1719
width: calc(100% - #{$media-preview-width-lg * 2});
1820
padding: $media-preview-height $media-preview-width-lg;
21+
margin: 0 auto;
1922
}
2023

2124
.vac-image-preview {

0 commit comments

Comments
 (0)