Skip to content

Commit

Permalink
fix: missing icons in video playback controls
Browse files Browse the repository at this point in the history
Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
  • Loading branch information
ferferga committed Jan 26, 2025
1 parent df5b7a8 commit f55d987
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Playback/MiniVideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<VBtn
icon
@click.passive="playerElement.toggleFullscreenVideoPlayer">
<JIcon class="i:mdi-arrow-expand-all" />
<JIcon class="i-mdi:arrow-expand-all" />
</VBtn>
<VSpacer />
<VBtn
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/composables/use-playback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ import { router } from '#/plugins/router';
import { mediaElementRef } from '#/store';
import { playbackManager } from '#/store/playback-manager';

interface PlaybackComposableReturn {
fullscreen: ReturnType<typeof useFullscreen>;
}

/**
* Watchers and handlers that are common to music and video playback
*/
export function usePlayback(): PlaybackComposableReturn {
export function usePlayback() {
watch(() => playbackManager.currentItem, () => {
if (!playbackManager.currentItem.value) {
router.back();
Expand Down
12 changes: 8 additions & 4 deletions frontend/src/pages/playback/video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
<div class="d-flex align-center py-2 px-4">
<div class="d-flex">
<VBtn
icon="i-mdi:close"
@click="playbackManager.stop" />
icon
@click="playbackManager.stop">
<JIcon class="i-mdi:close" />
</VBtn>
<VBtn
icon="i-mdi:chevron-down"
@click="playerElement.toggleFullscreenVideoPlayer" />
icon
@click="playerElement.toggleFullscreenVideoPlayer">
<JIcon class="i-mdi:chevron-down" />
</VBtn>
</div>
<div class="d-flex ml-auto">
<CastButton />
Expand Down

0 comments on commit f55d987

Please sign in to comment.