Skip to content

Commit ae9913e

Browse files
authored
Merge pull request #8125 from nextcloud/backport/8118/stable32
[stable32] fix: constrain height of video preview
2 parents 6002bb3 + 0eb59e6 commit ae9913e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/nodes/Preview.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@ export default {
9292
}
9393
}
9494
95+
:deep(.plyr__video-wrapper) {
96+
max-height: 400px;
97+
overflow: hidden;
98+
}
99+
100+
:deep(video),
101+
:deep(iframe) {
102+
max-height: 400px;
103+
height: auto;
104+
width: 100%;
105+
display: block;
106+
object-fit: contain;
107+
}
108+
95109
// Align in upper right corner of preview image
96110
.link-preview-header {
97111
position: absolute;

0 commit comments

Comments
 (0)