Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

🐛 fix overflowing of videos in post theater modal #134

Merged
merged 1 commit into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
language: "en",
loop: true,
autoplay: true,
fluid: true,
sources: [{
type: "video/mp4",
src: postVideoMp4Format.file
Expand Down
8 changes: 7 additions & 1 deletion components/post/components/post-media/OkPostMedia.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@
return this.postMedia[0];
}

onWantsToExpandPost() {
onWantsToExpandPost(e: Event) {
const element = e.target as HTMLElement;
if (element?.closest('.vjs-control-bar')) {
// User clicked on a videojs control item, don't show modal in this scenario.
return;
}

this.modalService.openPostModal({
post: this.post
});
Expand Down