Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Display generated tags separately (#4291)
Olga Bulat50fe56e1a946
diff --git a/frontend/src/components/VMediaInfo/VCollapsibleTagSection.vue b/frontend/src/components/VMediaInfo/VCollapsibleTagSection.vuenew file mode 100644index 000000000..f0f0632e3--- /dev/null+++ b/frontend/src/components/VMediaInfo/VCollapsibleTagSection.vue@@ -0,0 +1,229 @@+<template>+ <div class="-my-1.5px">+ <ul+ ref="tagsContainerRef"+ class="flex flex-wrap gap-3 overflow-y-hidden p-1.5px"+ :class="heightClass"+ >+ <li v-for="tag in visibleTags" :key="tag">+ <VTag :href="localizedTagPath(tag)">{{ tag }}</VTag>+ </li>+ </ul>+ <VButton+ v-if="hasOverflow"+ size="small"+ variant="transparent-tx"+ has-icon-end+ class="label-bold -ms-2 mt-4 hover:underline"+ :aria-expanded="buttonStatus === 'show' ? 'false' : 'true'"+ @click="handleClick"+ >{{+ $t(+ buttonStatus === "show"+ ? "mediaDetails.tags.showMore"+ : "mediaDetails.tags.showLess"+ )+ }}<VIcon+ name="caret-down"+ :size="4"+ :class="{ '-scale-y-100 transform': buttonStatus === 'hide' }"+ /></VButton>+ </div>+</template>+<script lang="ts">+import {+ computed,+ defineComponent,+ nextTick,+ onMounted,+ type PropType,+ ref,+} from "vue"+import { useContext } from "@nuxtjs/composition-api"++import { useResizeObserver, watchDebounced } from "@vueuse/core"++import type { Tag } from "~/types/media"+import type { SupportedMediaType } from "~/constants/media"+import { useSearchStore } from "~/stores/search"+import { useI18n } from "~/composables/use-i18n"++import { focusElement } from "~/utils/focus-management"++import VTag from "~/components/VTag/VTag.vue"+import VButton from "~/components/VButton.vue"+import VIcon from "~/components/VIcon/VIcon.vue"++// The number of rows to display before collapsing the tags+const ROWS_TO_DISPLAY = 3++export default defineComponent({+ name: "VCollapsibleTagSection",+ components: { VIcon, VButton, VTag },+ props: {+ tags: {+ type: Array as PropType<Tag[]>,+ required: true,+ },+ mediaType: {+ type: String as PropType<SupportedMediaType>,+ required: true,+ },+ },+ setup(props) {+ const tagsContainerRef = ref<HTMLElement>()++ const searchStore = useSearchStore()+ const { $sendCustomEvent } = useContext()+ const i18n = useI18n()++ const localizedTagPath = (tag: string) => {+ return searchStore.getCollectionPath({+ type: props.mediaType,+ collectionParams: { collection: "tag", tag },+ })+ }++ const normalizedTags = computed(() => {+ return Array.from(new Set(props.tags.map((tag) => tag.name)))+ })++ const collapsibleRowsStartAt = ref<number>()+ const dir = computed(() => {+ return i18n.localeProperties.dir+ })++ function isFurtherInline(previous: HTMLElement, current: HTMLElement) {+ if (dir.value === "rtl") {+ return previous.offsetLeft < current.offsetLeft+ }+ return previous.offsetLeft > current.offsetLeft+ }++ function findRowStartsAt(parent: HTMLElement) {+ const children = Array.from(parent.children)+ if (!children.length) {+ return 0+ }+ let rowCount = 0+ for (let i = 0; i < children.length; i++) {+ const child = children[i] as HTMLElement+ const previous = child.previousElementSibling as HTMLElement+ if (!previous) {+ rowCount+++ } else if (isFurtherInline(previous, child)) {+ rowCount+++ }+ if (rowCount === ROWS_TO_DISPLAY + 1) {+ return i+ }+ }+ return children.length+ }++ /**+ * Only the first 3 rows of tags are visible by default.+ * If we hide the tags using CSS only, they will be tabbable,+ * even though they are not visible.+ */+ const visibleTags = computed<string[]>(() => {+ return collapsibleRowsStartAt.value && buttonStatus.value === "show"+ ? normalizedTags.value.slice(0, collapsibleRowsStartAt.value)+ : normalizedTags.value+ })++ const hasOverflow = computed(() => {+ return (+ collapsibleRowsStartAt.value &&+ collapsibleRowsStartAt.value < normalizedTags.value.length+ )+ })++ onMounted(() => {+ /**+ * Find the index of the first item after the third row of tags. This is used+ * to determine which tags to hide.+ */+ if (tagsContainerRef.value) {+ collapsibleRowsStartAt.value = findRowStartsAt(tagsContainerRef.value)+ }+ })++ const buttonStatus = ref<"show" | "hide">("show")+ /**+ * Toggles the text for the "Show more" button. When showing more tags, we also+ * focus the first tag in the newly-opened row for a11y.+ */+ const handleClick = () => {+ buttonStatus.value = buttonStatus.value === "show" ? "hide" : "show"+ $sendCustomEvent("TOGGLE_TAG_EXPANSION", {+ toState: buttonStatus.value === "show" ? "collapsed" : "expanded",+ })+ if (buttonStatus.value === "hide" && collapsibleRowsStartAt.value) {+ nextTick(() => {+ if (!collapsibleRowsStartAt.value) {+ return+ }+ const firstTagInFourthRow = tagsContainerRef.value?.children.item(+ collapsibleRowsStartAt.value+ ) as HTMLElement+ focusElement(firstTagInFourthRow?.querySelector("a"))+ })+ }+ }++ const heightClass = computed(() => {+ if (!hasOverflow.value) {+ return "max-h-none"+ }+ /**+ * Height is 3 rows of tags, gaps, and a padding for the focus rings.+ * 3 * 2rem (tags) + 2 * 0.75rem (2 gaps) + 0.1875rem (margin for the focus ring)+ */+ return buttonStatus.value === "show" ? "max-h-[7.6875rem]" : "mah-h-none"+ })++ const listWidth = ref<number>()+ useResizeObserver(tagsContainerRef, (entries) => {+ listWidth.value = entries[0].contentRect.width+ })++ watchDebounced(+ listWidth,+ (newWidth, oldWidth) => {+ if (!tagsContainerRef.value) {+ return+ }+ const isWidening = oldWidth && newWidth && newWidth > oldWidth++ if (isWidening) {+ collapsibleRowsStartAt.value = normalizedTags.value.length+ }+ nextTick(() => {+ if (tagsContainerRef.value) {+ collapsibleRowsStartAt.value = findRowStartsAt(+ tagsContainerRef.value+ )+ }+ })+ },+ { debounce: 300 }+ )++ return {+ tagsContainerRef,++ localizedTagPath,++ normalizedTags,+ visibleTags,++ hasOverflow,+ buttonStatus,+ heightClass,++ handleClick,+ }+ },+})+</script>diff --git a/frontend/src/components/VMediaInfo/VMediaDetails.vue b/frontend/src/components/VMediaInfo/VMediaDetails.vueindex ec001a650..c5906b01f 100644--- a/frontend/src/components/VMediaInfo/VMediaDetails.vue+++ b/frontend/src/components/VMediaInfo/VMediaDetails.vue@@ -1,5 +1,5 @@<template>- <section class="flex flex-col gap-y-6">+ <section class="flex flex-col gap-y-6 md:gap-y-8"><header class="flex flex-row items-center justify-between"><h2 class="heading-6 md:heading-5">{{ $t(`mediaDetails.${media.frontendMediaType}Info`) }}@@ -9,10 +9,18 @@<div class="flex flex-col items-start gap-6 md:flex-row"><slot name="thumbnail" />- <div class="flex w-full flex-grow flex-col gap-6">- <p v-if="media.description">{{ media.description }}</p>- <VMediaTags :tags="media.tags" :media-type="media.frontendMediaType" />- <VMetadata v-if="metadata" :metadata="metadata" />+ <div class="flex flex-col gap-6 md:gap-8">+ <div+ class="flex w-full flex-grow flex-col items-start gap-6 md:flex-row"+ >+ <p v-if="media.description">{{ media.description }}</p>+ <VMetadata v-if="metadata" :metadata="metadata" />+ </div>+ <VMediaTags+ :tags="media.tags"+ :media-type="media.frontendMediaType"+ :provider="media.provider"+ /></div></div></section>diff --git a/frontend/src/components/VMediaInfo/VMediaTags.vue b/frontend/src/components/VMediaInfo/VMediaTags.vueindex 680b585fc..919b318fd 100644--- a/frontend/src/components/VMediaInfo/VMediaTags.vue+++ b/frontend/src/components/VMediaInfo/VMediaTags.vue@@ -1,66 +1,43 @@<template>- <div v-if="normalizedTags.length" class="-my-1.5px">- <ul- ref="tagsContainerRef"- :aria-label="$t('mediaDetails.tags.title').toString()"- class="flex flex-wrap gap-3 overflow-y-hidden p-1.5px"- :class="heightClass"- >- <li v-for="tag in visibleTags" :key="tag">- <VTag :href="localizedTagPath(tag)">{{ tag }}</VTag>- </li>- </ul>- <VButton- v-if="hasOverflow"- size="small"- variant="transparent-tx"- has-icon-end- class="label-bold -ms-2 mt-4 hover:underline"- :aria-expanded="buttonStatus === 'show' ? 'false' : 'true'"- @click="handleClick"- >{{- $t(- buttonStatus === "show"- ? "mediaDetails.tags.showMore"- : "mediaDetails.tags.showLess"- )- }}<VIcon- name="caret-down"- :size="4"- :class="{ '-scale-y-100 transform': buttonStatus === 'hide' }"- /></VButton>+ <div class="flex flex-col gap-6 sm:gap-8">+ <div v-if="hasSourceTags">+ <h3 v-if="hasGeneratedTags" class="label-regular mb-2">+ {{ $t("mediaDetails.tags.source.heading") }}+ </h3>+ <h3 v-else class="sr-only">{{ $t("mediaDetails.tags.title") }}</h3>+ <VCollapsibleTagSection+ :media-type="mediaType"+ :tags="tagsByType.source"+ />+ </div>+ <div v-if="hasGeneratedTags">+ <div class="label-regular mb-2 flex gap-2">+ <h3>{{ $t("mediaDetails.tags.generated.heading") }}</h3>+ <VLink :href="generatedTagsPath">{{+ $t("mediaDetails.tags.generated.pageTitle")+ }}</VLink>+ </div>+ <VCollapsibleTagSection+ :media-type="mediaType"+ :tags="tagsByType.generated"+ />+ </div></div></template>+<script lang="ts">-import {- computed,- defineComponent,- nextTick,- onMounted,- type PropType,- ref,-} from "vue"+import { computed, defineComponent, type PropType } from "vue"import { useContext } from "@nuxtjs/composition-api"-import { useResizeObserver, watchDebounced } from "@vueuse/core"--import type { Tag } from "~/types/media"import type { SupportedMediaType } from "~/constants/media"-import { useSearchStore } from "~/stores/search"-import { useI18n } from "~/composables/use-i18n"--import { focusElement } from "~/utils/focus-management"--import VTag from "~/components/VTag/VTag.vue"-import VButton from "~/components/VButton.vue"-import VIcon from "~/components/VIcon/VIcon.vue"+import type { Tag } from "~/types/media"-// The number of rows to display before collapsing the tags-const ROWS_TO_DISPLAY = 3+import VCollapsibleTagSection from "~/components/VMediaInfo/VCollapsibleTagSection.vue"+import VLink from "~/components/VLink.vue"export default defineComponent({name: "VMediaTags",- components: { VIcon, VButton, VTag },+ components: { VCollapsibleTagSection, VLink },props: {tags: {type: Array as PropType<Tag[]>,@@ -70,161 +47,38 @@ export default defineComponent({type: String as PropType<SupportedMediaType>,required: true,},+ provider: {+ type: String as PropType<string>,+ required: true,+ },},setup(props) {- const tagsContainerRef = ref<HTMLElement>()-- const searchStore = useSearchStore()- const { $sendCustomEvent } = useContext()- const i18n = useI18n()-- const localizedTagPath = (tag: string) => {- return searchStore.getCollectionPath({- type: props.mediaType,- collectionParams: { collection: "tag", tag },- })- }-- const normalizedTags = computed(() => {- return Array.from(new Set(props.tags.map((tag) => tag.name)))- })-- const collapsibleRowsStartAt = ref<number>()- const dir = computed(() => {- return i18n.localeProperties.dir- })-- function isFurtherInline(previous: HTMLElement, current: HTMLElement) {- if (dir.value === "rtl") {- return previous.offsetLeft < current.offsetLeft- }- return previous.offsetLeft > current.offsetLeft- }-- function findRowStartsAt(parent: HTMLElement) {- const children = Array.from(parent.children)- if (!children.length) {- return 0- }- let rowCount = 0- for (let i = 0; i < children.length; i++) {- const child = children[i] as HTMLElement- const previous = child.previousElementSibling as HTMLElement- if (!previous) {- rowCount++- } else if (isFurtherInline(previous, child)) {- rowCount++- }- if (rowCount === ROWS_TO_DISPLAY + 1) {- return i+ const tagsByType = computed(() => {+ const generatedTags = []+ const sourceTags = []+ for (const tag of props.tags) {+ if (+ tag.unstable__provider &&+ tag.unstable__provider !== props.provider+ ) {+ generatedTags.push(tag)+ } else {+ sourceTags.push(tag)}}- return children.length- }-- /**- * Only the first 3 rows of tags are visible by default.- * If we hide the tags using CSS only, they will be tabbable,- * even though they are not visible.- */- const visibleTags = computed<string[]>(() => {- return collapsibleRowsStartAt.value && buttonStatus.value === "show"- ? normalizedTags.value.slice(0, collapsibleRowsStartAt.value)- : normalizedTags.value- })-- const hasOverflow = computed(() => {- return (- collapsibleRowsStartAt.value &&- collapsibleRowsStartAt.value < normalizedTags.value.length- )- })-- onMounted(() => {- /**- * Find the index of the first item after the third row of tags. This is used- * to determine which tags to hide.- */- if (tagsContainerRef.value) {- collapsibleRowsStartAt.value = findRowStartsAt(tagsContainerRef.value)- }- })-- const buttonStatus = ref<"show" | "hide">("show")- /**- * Toggles the text for the "Show more" button. When showing more tags, we also- * focus the first tag in the newly-opened row for a11y.- */- const handleClick = () => {- buttonStatus.value = buttonStatus.value === "show" ? "hide" : "show"- $sendCustomEvent("TOGGLE_TAG_EXPANSION", {- toState: buttonStatus.value === "show" ? "collapsed" : "expanded",- })- if (buttonStatus.value === "hide" && collapsibleRowsStartAt.value) {- nextTick(() => {- if (!collapsibleRowsStartAt.value) {- return- }- const firstTagInFourthRow = tagsContainerRef.value?.children.item(- collapsibleRowsStartAt.value- ) as HTMLElement- focusElement(firstTagInFourthRow?.querySelector("a"))- })- }- }-- const heightClass = computed(() => {- if (!hasOverflow.value) {- return "max-h-none"- }- /**- * Height is 3 rows of tags, gaps, and a padding for the focus rings.- * 3 * 2rem (tags) + 2 * 0.75rem (2 gaps) + 0.1875rem (margin for the focus ring)- */- return buttonStatus.value === "show" ? "max-h-[7.6875rem]" : "mah-h-none"+ return { generated: generatedTags, source: sourceTags }})- const listWidth = ref<number>()- useResizeObserver(tagsContainerRef, (entries) => {- listWidth.value = entries[0].contentRect.width- })-- watchDebounced(- listWidth,- (newWidth, oldWidth) => {- if (!tagsContainerRef.value) {- return- }- const isWidening = oldWidth && newWidth && newWidth > oldWidth-- if (isWidening) {- collapsibleRowsStartAt.value = normalizedTags.value.length- }- nextTick(() => {- if (tagsContainerRef.value) {- collapsibleRowsStartAt.value = findRowStartsAt(- tagsContainerRef.value- )- }- })- },- { debounce: 300 }+ const hasSourceTags = computed(() => tagsByType.value.source.length > 0)+ const hasGeneratedTags = computed(+ () => tagsByType.value.generated.length > 0)- return {- tagsContainerRef,-- localizedTagPath,-- normalizedTags,- visibleTags,+ const { app } = useContext()- hasOverflow,- buttonStatus,- heightClass,+ const generatedTagsPath = computed(() => app.localePath("/generated-tags"))- handleClick,- }+ return { generatedTagsPath, tagsByType, hasSourceTags, hasGeneratedTags }},})</script>diff --git a/frontend/src/components/VMediaInfo/VMetadata.vue b/frontend/src/components/VMediaInfo/VMetadata.vueindex d5e42423d..5c509e15f 100644--- a/frontend/src/components/VMediaInfo/VMetadata.vue+++ b/frontend/src/components/VMediaInfo/VMetadata.vue@@ -4,7 +4,7 @@<VSourceProviderTooltipv-if="tooltipId(datum)":described-by="tooltipId(datum)"- class="label-regular mb-1 flex flex-row items-center ps-1"+ class="label-regular -ms-1 mb-1 flex flex-row items-center ps-1":datum="datum"/><dt v-else class="label-regular mb-1 flex flex-row ps-1">@@ -12,6 +12,7 @@</dt><VMetadataValue:datum="datum"+ :class="{ '-ms-1': Boolean(tooltipId(datum)) }"@click="sendVisitSourceLinkEvent(datum.source)"/></div>@@ -22,7 +23,7 @@v-if="tooltipId(datum)":key="datum.label":described-by="tooltipId(datum)"- class="label-regular flex flex-row items-center p-1 sm:py-0 sm:pe-0"+ class="label-regular -ms-1 flex flex-row items-center p-1 sm:ms-0 sm:py-0 sm:pe-0":datum="datum"/><dtdiff --git a/frontend/src/locales/scripts/en.json5 b/frontend/src/locales/scripts/en.json5index 04f8f9e49..9b93fa20f 100644--- a/frontend/src/locales/scripts/en.json5+++ b/frontend/src/locales/scripts/en.json5@@ -467,6 +467,12 @@},},},+ generatedTags: {+ title: "About Generated Tags",+ intro: {+ content: "Generated tags are automatically assigned to media items based on the content of the media item itself. These tags are generated using machine learning models trained on a large dataset of images and audio tracks.",+ },+ },error: {occurred: "An error occurred",imageNotFound: "Couldn't find image with id {id}",@@ -821,6 +827,13 @@audioInfo: "Audio track information",tags: {title: "Tags",+ generated: {+ heading: "Generated tags",+ pageTitle: "Learn more",+ },+ source: {+ heading: "Source tags",+ },showMore: "Show more",showLess: "Show less",},diff --git a/frontend/src/pages/generated-tags.vue b/frontend/src/pages/generated-tags.vuenew file mode 100644index 000000000..91833c64c--- /dev/null+++ b/frontend/src/pages/generated-tags.vue@@ -0,0 +1,31 @@+<template>+ <VContentPage>+ <h1>{{ $t("generatedTags.title") }}</h1>+ <p>{{ $t("generatedTags.intro.content") }}</p>+ </VContentPage>+</template>++<script lang="ts">+import { defineComponent, useMeta } from "@nuxtjs/composition-api"++import { useI18n } from "~/composables/use-i18n"++import VContentPage from "~/components/VContentPage.vue"++export default defineComponent({+ name: "VGeneratedTagsPage",+ components: { VContentPage },+ layout: "content-layout",+ setup() {+ const i18n = useI18n()++ useMeta({+ title: `${i18n.t("generatedTags.title")} | Openverse`,+ meta: [{ hid: "robots", name: "robots", content: "all" }],+ })++ return {}+ },+ head: {},+})+</script>diff --git a/frontend/src/types/media.ts b/frontend/src/types/media.tsindex a783cce68..d9fca4944 100644--- a/frontend/src/types/media.ts+++ b/frontend/src/types/media.ts@@ -13,6 +13,7 @@ import { AUDIO, IMAGE } from "~/constants/media"export interface Tag {name: string+ unstable__provider?: string}/**diff --git a/frontend/test/playwright/e2e/collections.spec.ts b/frontend/test/playwright/e2e/collections.spec.tsindex eac127cf2..cf4c510a1 100644--- a/frontend/test/playwright/e2e/collections.spec.ts+++ b/frontend/test/playwright/e2e/collections.spec.ts@@ -11,7 +11,6 @@ import {getCopyButton,getH1,getLoadMoreButton,- // getLoadMoreButton,} from "~~/test/playwright/utils/components"import { t } from "~~/test/playwright/utils/i18n"import {@@ -73,7 +72,7 @@ test("some tags are hidden if there are more than 3 rows", async ({ page }) => {await preparePageForTests(page, "xl")await page.goto("/image/2bc7dde0-5aad-4cf7-b91d-7f0e3bd06750")- const tags = page.getByRole("list", { name: t("mediaDetails.tags.title") })+ const tags = page.getByRole("list").nth(2)await expect(tags).toBeVisible()const tagsCount = await tags.locator("li").count()diff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-2xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-2xl-linux.pngindex 1f6673cdc..ef18119a8 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-2xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-2xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-lg-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-lg-linux.pngindex d8b6ddd25..a7d4bc817 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-lg-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-lg-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-md-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-md-linux.pngindex af49ddafd..8b92ca7d3 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-md-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-md-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-sm-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-sm-linux.pngindex 1ab870cf0..93942c5d6 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-sm-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-sm-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-xl-linux.pngindex b9a1e7f7d..444e4f97f 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-xs-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-xs-linux.pngindex 1f07f48d9..80dcf6bc0 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-xs-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-ltr-from-search-results-with-additional-search-views-xs-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-2xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-2xl-linux.pngindex 008b87f70..b7457190f 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-2xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-2xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-lg-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-lg-linux.pngindex 4088e8274..5140c1021 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-lg-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-lg-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-md-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-md-linux.pngindex 232e6742d..97d6f549a 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-md-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-md-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-sm-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-sm-linux.pngindex a4e22845c..77b93ca37 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-sm-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-sm-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-xl-linux.pngindex 24162e557..2a3efeff1 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-xs-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-xs-linux.pngindex cafa57143..4f728af13 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-xs-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/audio-rtl-from-search-results-with-additional-search-views-xs-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-2xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-2xl-linux.pngindex c6cf129e9..b8c6beaa8 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-2xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-2xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-lg-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-lg-linux.pngindex 65344b8ba..35ef32339 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-lg-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-lg-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-md-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-md-linux.pngindex 6cb4f9dae..d4e3853f2 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-md-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-md-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-sm-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-sm-linux.pngindex 5a70e14ac..148ddfe4c 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-sm-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-sm-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-xl-linux.pngindex c822dabff..4058f5139 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-xs-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-xs-linux.pngindex c722b184a..ac5b17332 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-xs-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-ltr-from-search-results-with-additional-search-views-xs-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-2xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-2xl-linux.pngindex 394aa768d..a04fed2d3 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-2xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-2xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-lg-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-lg-linux.pngindex a7321baa5..d406d68e6 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-lg-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-lg-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-md-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-md-linux.pngindex aafa84bf5..9fff959c4 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-md-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-md-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-sm-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-sm-linux.pngindex 4806817b4..facacb0f9 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-sm-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-sm-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-xl-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-xl-linux.pngindex 776a49649..af7e53c70 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-xl-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-xl-linux.png differdiff --git a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-xs-linux.png b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-xs-linux.pngindex a0b3a5dc4..6b9c84ed9 100644Binary files a/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-xs-linux.png and b/frontend/test/playwright/visual-regression/pages/pages-single-result.spec.ts-snapshots/image-rtl-from-search-results-with-additional-search-views-xs-linux.png differ