Skip to content

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

Fix audio RTL visual bugs (#514)

sarayourfriend07c1285e4c05
diff --git a/src/components/AudioDetails/Tags.vue b/src/components/AudioDetails/Tags.vue
index 532a2f81c..5264ad09a 100644
--- a/src/components/AudioDetails/Tags.vue
+++ b/src/components/AudioDetails/Tags.vue
@@ -7,7 +7,7 @@
<MediaTag
v-for="(tag, index) in getValidTags()"
:key="index"
- class="me-4"
+ class="me-4 inline"
@click="searchByTagName"
>
{{ tag.name }}
diff --git a/src/components/AudioTrack/layouts/Row.vue b/src/components/AudioTrack/layouts/Row.vue
index d2f5b9454..aca536719 100644
--- a/src/components/AudioTrack/layouts/Row.vue
+++ b/src/components/AudioTrack/layouts/Row.vue
@@ -50,7 +50,7 @@
</span>
</div>
- <div class="part-b inline-flex space-x-1">
+ <div class="part-b inline-flex gap-1">
<div v-if="isMedium">
{{ timeFmt(audio.duration) }} {{ $t('interpunct') }}
<template v-if="audio.category">
diff --git a/src/components/MediaTag/MediaTag.vue b/src/components/MediaTag/MediaTag.vue
index b86d2c3ec..e8eead05d 100644
--- a/src/components/MediaTag/MediaTag.vue
+++ b/src/components/MediaTag/MediaTag.vue
@@ -2,7 +2,7 @@
<Component
:is="tag"
v-bind="$attrs"
- class="media-tag text-dark-charcoal-60 text-sm font-semibold py-1 px-2 border border-dark-charcoal-60 rounded-full"
+ class="text-dark-charcoal-60 text-sm font-semibold py-1 px-2 border border-dark-charcoal-60 rounded-full"
>
<!-- @slot Content goes here -->
<slot />
@@ -23,7 +23,7 @@ export default {
*/
tag: {
type: String,
- default: 'span',
+ default: 'div',
},
},
}
diff --git a/test/unit/specs/components/MediaTag/media-tag.spec.js b/test/unit/specs/components/MediaTag/media-tag.spec.js
index 6d1e92532..41dd1b0f4 100644
--- a/test/unit/specs/components/MediaTag/media-tag.spec.js
+++ b/test/unit/specs/components/MediaTag/media-tag.spec.js
@@ -11,10 +11,10 @@ describe('MediaTag', () => {
options = { propsData: props }
})
- it('should render an span tag by default', () => {
+ it('should render an div tag by default', () => {
const wrapper = render(MediaTag, options)
- expect(wrapper.vm.$props.tag).toEqual('span')
- expect(wrapper.vm.$el).toBeInstanceOf(HTMLSpanElement)
+ expect(wrapper.vm.$props.tag).toEqual('div')
+ expect(wrapper.vm.$el).toBeInstanceOf(HTMLDivElement)
})
it('should render the supplied tag', () => {