Skip to content

Commit 0a9a0c3

Browse files
add prose to v-html
1 parent 88a8764 commit 0a9a0c3

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

resources/js/Components/cards/ArticleCard.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<h3 class="mb-3 text-xl font-bold text-gray-900 line-clamp-2" v-text="article.title" />
1919

20-
<div class="text-gray-500 line-clamp-4" v-html="article.description" />
20+
<div class="text-gray-500 line-clamp-4 prose" v-html="article.description" />
2121

2222
<div class="flex items-center justify-between mt-6">
2323
<time class="text-sm text-gray-500" v-text="article.date" />
@@ -37,13 +37,13 @@
3737
</template>
3838

3939
<script setup>
40-
import ArticleCategory from '@/Components/ArticleCategory.vue';
41-
import { ArrowNarrowRightIcon } from '@heroicons/vue/solid';
42-
43-
defineProps({
44-
article: {
45-
type: Object,
46-
required: true,
47-
},
48-
});
40+
import ArticleCategory from '@/Components/ArticleCategory.vue';
41+
import { ArrowNarrowRightIcon } from '@heroicons/vue/solid';
42+
43+
defineProps({
44+
article: {
45+
type: Object,
46+
required: true,
47+
},
48+
});
4949
</script>

resources/js/Pages/Auth/Registration/Step5.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
:error="form.errors['ngo.why_volunteer']"
2525
>
2626
</Textarea>
27-
<p class="text-xs font-normal text-gray-500" v-html="$t('why_volunteer_info')" />
27+
<p class="text-xs font-normal text-gray-500 prose" v-html="$t('why_volunteer_info')" />
2828

2929
<div v-if="'organization' == form.type" class="flex items-center justify-between mt-6 gap-x-4">
3030
<SecondaryButton @click="$emit('prev', $event.target)">

resources/js/Pages/Public/Bcr/Show.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
<div class="mb-10" v-if="project.description">
4343
<h2 class="mb-6 text-3xl font-bold text-primary-900">{{ $t('description') }}</h2>
44-
<div class="text-lg text-gray-500" v-html="project.description" />
44+
<div class="text-lg text-gray-500 prose" v-html="project.description" />
4545
</div>
4646
</div>
4747

0 commit comments

Comments
 (0)