From db3823eb79350f177f45533eb3d9258fb32c435e Mon Sep 17 00:00:00 2001 From: Alban Costaz Date: Thu, 2 Jan 2025 10:19:42 +0100 Subject: [PATCH] [MS] FileControlsPlayback component --- .../viewers/controls/FileControlsPlayback.vue | 30 +++++++++++++++++++ .../viewers/controls/FileControlsVolume.vue | 2 +- client/src/components/viewers/index.ts | 2 ++ client/src/views/viewers/AudioViewer.vue | 30 +++++-------------- client/src/views/viewers/VideoViewer.vue | 22 ++++---------- client/tests/e2e/specs/file_viewers.spec.ts | 6 ++-- 6 files changed, 49 insertions(+), 43 deletions(-) create mode 100644 client/src/components/viewers/controls/FileControlsPlayback.vue diff --git a/client/src/components/viewers/controls/FileControlsPlayback.vue b/client/src/components/viewers/controls/FileControlsPlayback.vue new file mode 100644 index 00000000000..d0276575a4e --- /dev/null +++ b/client/src/components/viewers/controls/FileControlsPlayback.vue @@ -0,0 +1,30 @@ + + + + + + + diff --git a/client/src/components/viewers/controls/FileControlsVolume.vue b/client/src/components/viewers/controls/FileControlsVolume.vue index 1e215271063..309f01e5d25 100644 --- a/client/src/components/viewers/controls/FileControlsVolume.vue +++ b/client/src/components/viewers/controls/FileControlsVolume.vue @@ -69,7 +69,7 @@ function getVolumeIcon(): string { display: flex; &-slider { - margin-right: 0.5rem; + margin-right: 1rem; opacity: 1; width: 5rem; display: flex; diff --git a/client/src/components/viewers/index.ts b/client/src/components/viewers/index.ts index 10546f37390..46816f523f4 100644 --- a/client/src/components/viewers/index.ts +++ b/client/src/components/viewers/index.ts @@ -5,6 +5,7 @@ import FileControlsButton from '@/components/viewers/controls/FileControlsButton import FileControlsGroup from '@/components/viewers/controls/FileControlsGroup.vue'; import FileControlsInput from '@/components/viewers/controls/FileControlsInput.vue'; import FileControlsPagination from '@/components/viewers/controls/FileControlsPagination.vue'; +import FileControlsPlayback from '@/components/viewers/controls/FileControlsPlayback.vue'; import FileControlsVolume from '@/components/viewers/controls/FileControlsVolume.vue'; import FileControlsZoom from '@/components/viewers/controls/FileControlsZoom.vue'; @@ -14,6 +15,7 @@ export { FileControlsGroup, FileControlsInput, FileControlsPagination, + FileControlsPlayback, FileControlsVolume, FileControlsZoom, }; diff --git a/client/src/views/viewers/AudioViewer.vue b/client/src/views/viewers/AudioViewer.vue index 58fc611a599..40b3c1fa547 100644 --- a/client/src/views/viewers/AudioViewer.vue +++ b/client/src/views/viewers/AudioViewer.vue @@ -18,12 +18,11 @@ @@ -31,11 +30,10 @@ diff --git a/client/src/views/viewers/VideoViewer.vue b/client/src/views/viewers/VideoViewer.vue index df430a858b8..46fb29bb504 100644 --- a/client/src/views/viewers/VideoViewer.vue +++ b/client/src/views/viewers/VideoViewer.vue @@ -21,9 +21,9 @@