Skip to content

Commit df9e787

Browse files
authored
chore: Fileviewer / make css const (#716)
1 parent 19fa45f commit df9e787

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/ui/FileViewer/index.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
@import '../../styles/variables';
22

3+
$file-viewer-slide-buttons-side-length: 64px;
4+
$file-viewer-slide-buttons-margin-length: 56px;
5+
$file-viewer-img-max-width: calc(100% - #{$file-viewer-slide-buttons-side-length} - #{$file-viewer-slide-buttons-margin-length});
6+
37
.sendbird-fileviewer__header__right__actions__download,
48
.sendbird-fileviewer__header__right__actions__delete,
59
.sendbird-fileviewer__header__right__actions__close {
@@ -99,11 +103,11 @@
99103
max-height: 90%;
100104
}
101105
.sendbird-fileviewer__content__img__multi {
102-
max-width: calc(100% - 64px - 56px);
103-
max-height: calc(100% - 64px - 56px);
106+
max-width: $file-viewer-img-max-width;
107+
max-height: 100%;
104108
@include mobile() {
105109
max-width: 100%;
106-
max-height:100%;
110+
max-height: 100%;
107111
}
108112
}
109113
.sendbird-fileviewer__content__unsupported {

0 commit comments

Comments
 (0)