diff --git a/tauri-app/src/components/GameReview.vue b/tauri-app/src/components/GameReview.vue index 439002f..d860474 100644 --- a/tauri-app/src/components/GameReview.vue +++ b/tauri-app/src/components/GameReview.vue @@ -524,193 +524,195 @@ onUnmounted(() => {
- -
-
-
⚠️
-

{{ videoError }}

-
- - - -
-
-

Loading video...

-
- - -
- -
-
- -
-
-
-
- - -
- -
-
- -
- - -
- - -
- - -
+
+ +
+
+
⚠️
+

{{ videoError }}

- -
-
{{ formatEventTime(hoveredEvent) }}
-
{{ hoveredEvent.event_type }}
-
{{ hoveredEvent.description }}
+ + Your browser does not support the video tag. + + +
+
+

Loading video...

+
+ + +
+ +
+
+ +
+
- - -
-
- - - - - - -
- {{ formatDuration(currentTime) }} - / - {{ formatDuration(duration) }} -
-
- -
- -
- - - - {{ formatDuration(clipDuration) }} - - - + class="clip-region" + :style="{ + left: `${(clipStart / duration) * 100}%`, + width: `${((clipEnd - clipStart) / duration) * 100}%` + }" + >
+ + +
+ + +
+
+ + +
+
{{ formatEventTime(hoveredEvent) }}
+
{{ hoveredEvent.event_type }}
+
{{ hoveredEvent.description }}
-
- - - - -
- - + + + + + +
+ {{ formatDuration(currentTime) }} + / + {{ formatDuration(duration) }} +
- +
+ +
+ + + + {{ formatDuration(clipDuration) }} + + + +
+
+ +
+ + + + +
+ + +
+ + +
@@ -974,16 +976,21 @@ onUnmounted(() => { 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 { position: relative; background: #000; aspect-ratio: 16/9; - max-height: 75vh; - width: min(100%, calc(75vh * 16 / 9)); + width: 100%; display: flex; align-items: center; justify-content: center; - margin: 0 auto; } .video-player {