diff --git a/web_src/src/components/GBRecordDetail.vue b/web_src/src/components/GBRecordDetail.vue
index 37ec377f5..b800e0c1a 100755
--- a/web_src/src/components/GBRecordDetail.vue
+++ b/web_src/src/components/GBRecordDetail.vue
@@ -36,7 +36,6 @@
:error="videoError"
:message="videoError"
:hasAudio="hasAudio"
- style="max-height: 100%"
fluent autoplay live >
@@ -137,8 +136,11 @@
margin: "10px auto 10px auto"
},
playerStyle: {
+ "display": "flex",
+ "justify-content": "center",
+ "align-items": "center",
"margin": "0 auto 20px auto",
- "height": this.winHeight + "px",
+ "height": this.winHeight + "px"
},
winHeight: window.innerHeight - 240,
playTime: null,
@@ -178,17 +180,25 @@
},
mounted() {
- this.recordListStyle.height = this.winHeight + "px";
- this.playerStyle["height"] = this.winHeight + "px";
- this.chooseDate = moment().format('YYYY-MM-DD')
- this.dateChange();
- window.addEventListener('beforeunload', this.stopPlayRecord)
+ this.$nextTick(() => {
+ this.updateWinHeight();
+ this.chooseDate = moment().format('YYYY-MM-DD')
+ this.dateChange();
+ window.addEventListener('resize',this.updateWinHeight)
+ window.addEventListener('beforeunload', this.stopPlayRecord)
+ })
},
destroyed() {
this.$destroy('recordVideoPlayer');
window.removeEventListener('beforeunload', this.stopPlayRecord)
+ window.removeEventListener('resize',this.updateWinHeight)
},
methods: {
+ updateWinHeight(){
+ this.winHeight=window.innerHeight - 240;
+ this.recordListStyle.height = this.winHeight + "px";
+ this.playerStyle.height = this.winHeight + "px";
+ },
dateChange(){
if (!this.chooseDate) {
return;
diff --git a/web_src/src/components/common/jessibuca.vue b/web_src/src/components/common/jessibuca.vue
index 3419bb590..ef79bab76 100755
--- a/web_src/src/components/common/jessibuca.vue
+++ b/web_src/src/components/common/jessibuca.vue
@@ -1,23 +1,25 @@
-