Skip to content

Commit 79806a2

Browse files
StanG4313d0rich
andauthored
[DO-596] Text breaking in next/prev buttons (#51)
* Text breaking in next/prev buttons fixed * Use Tailwind CSS class --------- Co-authored-by: Nikolai Dorofeev <[email protected]>
1 parent da1704b commit 79806a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/ep/layout/SurroundDocCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defineProps<{
3232
<template>
3333
<NuxtLink
3434
:to="withTrailingSlash(doc._path ?? '')"
35-
class="block max-w-sm p-6 bg-white border border-gray-200 rounded-lg shadow hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700"
35+
class="block max-w-sm p-6 bg-white border border-gray-200 rounded-lg shadow hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-700 dark:hover:bg-gray-700 break-words"
3636
>
3737
<div>
3838
<div v-if="direction === 'before'" class="mb-2">
@@ -52,7 +52,7 @@ defineProps<{
5252
</span>
5353
</div>
5454
<h4 class="text-xl font-bold">{{ doc.title }}</h4>
55-
<p>{{ doc.description }}</p>
55+
<p class="break-words">{{ doc.description }}</p>
5656
</div>
5757
</NuxtLink>
5858
</template>

0 commit comments

Comments
 (0)