Skip to content

Commit abdc077

Browse files
committed
fix public view
Signed-off-by: szaimen <szaimen@e.mail.de>
1 parent bc142f4 commit abdc077

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

apps/files_sharing/css/public.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
@use 'variables';
22

3+
$footer-height: 65px;
4+
$download-button-section-height: 200px;
5+
36
#preview {
47
text-align: center;
58
}
@@ -27,8 +30,13 @@
2730
}
2831

2932
#imgframe img {
30-
max-height: 100% !important;
33+
max-height: calc(100vh - var(--header-height) - #{$footer-height} - #{$download-button-section-height});
3134
max-width: 100% !important;
35+
width: unset;
36+
}
37+
38+
#imgframe video {
39+
max-height: calc(100vh - var(--header-height) - #{$footer-height} - #{$download-button-section-height});
3240
}
3341

3442
#imgframe audio {
@@ -42,7 +50,7 @@
4250
position: relative;
4351
text-align: left;
4452
white-space: pre-wrap;
45-
overflow-y: hidden;
53+
overflow-y: scroll;
4654
height: auto;
4755
min-height: 200px;
4856
max-height: 800px;
@@ -61,6 +69,11 @@
6169
max-height: 100%;
6270
}
6371

72+
// Fix footer overlapping with app-content
73+
.app-files_sharing #app-content {
74+
max-height: calc(100vh - var(--header-height) - #{$footer-height});
75+
}
76+
6477
/* fix multiselect bar offset on shared page */
6578
thead {
6679
left: 0 !important;

0 commit comments

Comments
 (0)