Skip to content

Commit

Permalink
fix: 高さ調整
Browse files Browse the repository at this point in the history
(cherry picked from commit 13b2696)
  • Loading branch information
nacika-ins committed Sep 19, 2024
1 parent 74758a5 commit a7072da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/frontend/src/components/MkMediaVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ const hide = ref(

<style lang="scss" scoped>
.kkjnbbplepmiyuadieoenjgutgcmtsvu {
height: min-content;
position: relative;
--plyr-color-main: var(--accent);
Expand Down
16 changes: 13 additions & 3 deletions packages/frontend/src/components/MkVideoPlayer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<div :class="$style.root">
<video ref="videoPlayer" class="video-js" vjs-default-skin playsinline :poster="poster"></video>
</div>
</template>
Expand Down Expand Up @@ -32,9 +32,11 @@ export default {
this.$refs.videoPlayer,
{
...this.options,
fill: true,
fill: false,
// 高さ制限
height: 343,
// responsive: true,
fluid: true,
fluid: false,
// aspectRatio: '4:3',
},
() => {
Expand All @@ -50,6 +52,14 @@ export default {
};
</script>

<style lang="scss" module>
.root {
display: flex;
justify-content: center;
background-color: black;
}
</style>

<style lang="scss">
.vjs-error .vjs-error-display .vjs-modal-dialog-content {
padding-top: 40px;
Expand Down

0 comments on commit a7072da

Please sign in to comment.