Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix global audio rtl close placement (#780)

Zack Krida271b5ed39023
diff --git a/src/components/VAudioTrack/layouts/VRowLayout.vue b/src/components/VAudioTrack/layouts/VRowLayout.vue
index 3e3f45abf..fd1055466 100644
--- a/src/components/VAudioTrack/layouts/VRowLayout.vue
+++ b/src/components/VAudioTrack/layouts/VRowLayout.vue
@@ -8,7 +8,7 @@
:class="isLarge ? 'w-30 me-6' : 'w-20 me-4'"
>
<VAudioThumbnail :audio="audio" />
- <div v-if="isSmall" class="absolute bottom-0 end-0">
+ <div v-if="isSmall" class="absolute bottom-0 rtl:left-0 ltr:right-0">
<slot name="play-pause" size="tiny" />
</div>
</div>
diff --git a/src/components/VGlobalAudioSection/VGlobalAudioSection.vue b/src/components/VGlobalAudioSection/VGlobalAudioSection.vue
index e34231a59..eaebb913d 100644
--- a/src/components/VGlobalAudioSection/VGlobalAudioSection.vue
+++ b/src/components/VGlobalAudioSection/VGlobalAudioSection.vue
@@ -3,7 +3,7 @@
<VGlobalAudioTrack v-if="audio" layout="global" :audio="audio" />
<VIconButton
v-if="audio"
- class="absolute top-0 end-0 border-none z-10"
+ class="absolute top-0 rtl:left-0 ltr:right-0 border-none z-10"
:icon-props="{ iconPath: icons.closeIcon }"
@click="handleClose"
/>