From 75d4ac546749bba5f6ab0f5e945feebf07ac2f98 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Sun, 23 Feb 2025 00:01:13 +0100 Subject: [PATCH] fix(style): use buttons, add spacings and new play indicator animation for track row --- .../components/audio/track/PlayIndicator.vue | 4 + front/src/components/audio/track/Row.vue | 54 +++---- front/src/components/audio/track/Table.vue | 2 +- .../src/style/components/_play_indicator.scss | 140 +++++++++++++++++- front/src/style/components/_track_table.scss | 10 +- 5 files changed, 166 insertions(+), 44 deletions(-) diff --git a/front/src/components/audio/track/PlayIndicator.vue b/front/src/components/audio/track/PlayIndicator.vue index 131a9f388..3d06ebd4d 100644 --- a/front/src/components/audio/track/PlayIndicator.vue +++ b/front/src/components/audio/track/PlayIndicator.vue @@ -4,5 +4,9 @@
+
+
+
+
diff --git a/front/src/components/audio/track/Row.vue b/front/src/components/audio/track/Row.vue index a15487342..ebd5e0b3b 100644 --- a/front/src/components/audio/track/Row.vue +++ b/front/src/components/audio/track/Row.vue @@ -6,12 +6,14 @@ import { computed, ref } from 'vue' import usePlayOptions from '~/composables/audio/usePlayOptions' -import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue' -import PlayIndicator from '~/components/audio/track/PlayIndicator.vue' -import PlayButton from '~/components/audio/PlayButton.vue' import { usePlayer } from '~/composables/audio/player' import { useQueue } from '~/composables/audio/queue' import { useStore } from '~/store' +import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue' +import PlayIndicator from '~/components/audio/track/PlayIndicator.vue' +import PlayButton from '~/components/audio/PlayButton.vue' + +import Button from '~/components/ui/Button.vue' const store = useStore() @@ -84,32 +86,29 @@ const hover = ref(false) !hover " /> - - - + icon="bi-play-fill" + class="ui play-button" + /> -
@@ -240,6 +233,7 @@ const hover = ref(false) .row > div { /* total height 64px, according to designs on penpot */ margin-bottom: 8px; + margin-right: 8px; height: 48px; } diff --git a/front/src/components/audio/track/Table.vue b/front/src/components/audio/track/Table.vue index 031faece1..9d3e2b0ac 100644 --- a/front/src/components/audio/track/Table.vue +++ b/front/src/components/audio/track/Table.vue @@ -187,7 +187,7 @@ const updatePage = (page: number) => {