Skip to content

Commit 3bdd25f

Browse files
committed
fix:[#525] custom word-wrap css class
1 parent 5c31ef4 commit 3bdd25f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

components/Markdown.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<!-- eslint-disable vue/no-v-html -->
3-
<div class="prose max-w-full text-justify break-words" v-html="sanitizedDescription" />
3+
<div class="prose max-w-none text-justify word-wrap" v-html="sanitizedDescription"/>
44
</template>
55

66
<script setup lang="ts">
@@ -44,5 +44,16 @@ async function sanitizeDescription () {
4444
</script>
4545

4646
<style scoped>
47+
.word-wrap {
48+
-ms-word-break: break-all;
49+
word-break: break-all;
4750
51+
/* Non standard for webkit */
52+
word-break: break-word;
53+
54+
-webkit-hyphens: auto;
55+
-moz-hyphens: auto;
56+
-ms-hyphens: auto;
57+
hyphens: auto;
58+
}
4859
</style>

0 commit comments

Comments
 (0)