tauri-app: fix video control bar
This commit is contained in:
@@ -524,6 +524,7 @@ onUnmounted(() => {
|
|||||||
<div class="review-content">
|
<div class="review-content">
|
||||||
<!-- Video Section -->
|
<!-- Video Section -->
|
||||||
<div class="video-section with-sidebar">
|
<div class="video-section with-sidebar">
|
||||||
|
<div class="video-wrapper">
|
||||||
<!-- Video Player -->
|
<!-- Video Player -->
|
||||||
<div class="video-container">
|
<div class="video-container">
|
||||||
<div v-if="videoError" class="video-error">
|
<div v-if="videoError" class="video-error">
|
||||||
@@ -714,6 +715,7 @@ onUnmounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Export message -->
|
<!-- Export message -->
|
||||||
<div v-if="exportMessage" class="export-message" :class="{ error: exportMessage.includes('failed') }">
|
<div v-if="exportMessage" class="export-message" :class="{ error: exportMessage.includes('failed') }">
|
||||||
@@ -974,16 +976,21 @@ onUnmounted(() => {
|
|||||||
max-width: calc(100% - 350px);
|
max-width: calc(100% - 350px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.video-wrapper {
|
||||||
|
width: min(100%, calc(75vh * 16 / 9));
|
||||||
|
max-height: calc(75vh + 120px);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
.video-container {
|
.video-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #000;
|
background: #000;
|
||||||
aspect-ratio: 16/9;
|
aspect-ratio: 16/9;
|
||||||
max-height: 75vh;
|
width: 100%;
|
||||||
width: min(100%, calc(75vh * 16 / 9));
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-player {
|
.video-player {
|
||||||
|
|||||||
Reference in New Issue
Block a user