Skip to content

Commit

Permalink
fix:[torrust#525] custom word-wrap css class
Browse files Browse the repository at this point in the history
  • Loading branch information
hungfnt committed Apr 23, 2024
1 parent 5c31ef4 commit 3bdd25f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion components/Markdown.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<!-- eslint-disable vue/no-v-html -->
<div class="prose max-w-full text-justify break-words" v-html="sanitizedDescription" />
<div class="prose max-w-none text-justify word-wrap" v-html="sanitizedDescription"/>
</template>

<script setup lang="ts">
Expand Down Expand Up @@ -44,5 +44,16 @@ async function sanitizeDescription () {
</script>

<style scoped>
.word-wrap {
-ms-word-break: break-all;
word-break: break-all;
/* Non standard for webkit */
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
</style>

0 comments on commit 3bdd25f

Please sign in to comment.