Skip to content

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

Fix VButton centering (#1930)

Olga Bulatf58566d9f533
diff --git a/src/components/VAudioTrack/layouts/VFullLayout.vue b/src/components/VAudioTrack/layouts/VFullLayout.vue
index f9542d514..3f6b1ad8c 100644
--- a/src/components/VAudioTrack/layouts/VFullLayout.vue
+++ b/src/components/VAudioTrack/layouts/VFullLayout.vue
@@ -56,7 +56,7 @@
as="VLink"
:href="audio.foreign_landing_url"
size="disabled"
- class="order-1 px-6 py-3 text-sr font-semibold ms-auto md:px-6 md:py-4 md:text-2xl lg:order-2"
+ class="order-1 self-center px-6 py-3 text-sr font-semibold ms-auto md:px-6 md:py-4 md:text-2xl lg:order-2"
>
{{ $t('audio-details.weblink') }}
<VIcon
diff --git a/src/components/VButton.vue b/src/components/VButton.vue
index db20e365a..07bc640a6 100644
--- a/src/components/VButton.vue
+++ b/src/components/VButton.vue
@@ -2,7 +2,7 @@
<Component
:is="as"
:type="typeRef"
- class="group flex appearance-none items-center justify-center self-center rounded-sm no-underline ring-offset-1 transition-shadow duration-100 ease-linear focus:outline-none"
+ class="group flex appearance-none items-center justify-center rounded-sm no-underline ring-offset-1 transition-shadow duration-100 ease-linear focus:outline-none"
:class="[
$style.button,
$style[variant],
diff --git a/src/pages/image/_id.vue b/src/pages/image/_id.vue
index 99afc1fec..63361cec2 100644
--- a/src/pages/image/_id.vue
+++ b/src/pages/image/_id.vue
@@ -34,7 +34,7 @@
<VButton
as="VLink"
:href="image.foreign_landing_url"
- class="description-bold md:heading-6 mb-4 w-full flex-initial md:mb-0 md:w-max"
+ class="description-bold md:heading-6 mb-4 w-full flex-initial self-center md:mb-0 md:w-max"
size="large"
>
{{ $t('image-details.weblink') }}