Skip to content

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

Break long searched words if necessary (#1391)

Rafael Takei2b9a216c1f50
diff --git a/src/components/VErrorSection/VNoResults.vue b/src/components/VErrorSection/VNoResults.vue
index 22e48e48c..f4c2443ee 100644
--- a/src/components/VErrorSection/VNoResults.vue
+++ b/src/components/VErrorSection/VNoResults.vue
@@ -1,6 +1,6 @@
<template>
<div class="no-results text-center md:text-left">
- <h5 class="text-5xl">
+ <h5 class="text-5xl break-words">
{{ $t('no-results.heading', { query: query.q }) }}
</h5>
<h6 class="text-3xl font-normal md:font-bold mt-10 md:mt-16">
diff --git a/src/components/VSearchResultsTitle.vue b/src/components/VSearchResultsTitle.vue
index 61c8f0922..b05b2aa05 100644
--- a/src/components/VSearchResultsTitle.vue
+++ b/src/components/VSearchResultsTitle.vue
@@ -1,6 +1,6 @@
<template>
<h1
- class="leading-tight sr-only md:not-sr-only"
+ class="leading-tight sr-only md:not-sr-only break-words"
:class="[size === 'large' ? 'text-[90px]' : 'text-6xl']"
>
<slot default />