File tree Expand file tree Collapse file tree 6 files changed +17
-6
lines changed Expand file tree Collapse file tree 6 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 11<template >
22 <!-- eslint-disable vue/no-v-html -->
3- <div class =" prose" 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 >
Original file line number Diff line number Diff line change 1212 </button >
1313 </div >
1414 <template v-if =" ! collapsed " >
15- <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl break-words " >
15+ <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl" >
1616 <template v-if =" torrent .comment " >
1717 <Markdown :source =" torrent.comment" />
1818 </template >
Original file line number Diff line number Diff line change 1212 </button >
1313 </div >
1414 <template v-if =" ! collapsed " >
15- <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl break-words " >
15+ <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl" >
1616 <template v-if =" torrent .created_by " >
1717 <Markdown :source =" torrent.created_by" />
1818 </template >
Original file line number Diff line number Diff line change 1212 </button >
1313 </div >
1414 <template v-if =" ! collapsed " >
15- <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl break-words " >
15+ <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl" >
1616 <template v-if =" torrent .creation_date " >
1717 <Markdown :source =" formattedDateFromTimestamp" />
1818 </template >
Original file line number Diff line number Diff line change 1212 </button >
1313 </div >
1414 <template v-if =" ! collapsed " >
15- <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl break-words " >
15+ <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl" >
1616 <template v-if =" torrent .description " >
1717 <Markdown :source =" torrent.description" />
1818 </template >
Original file line number Diff line number Diff line change 1212 </button >
1313 </div >
1414 <template v-if =" ! collapsed " >
15- <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl break-words " >
15+ <div class =" flex flex-col w-full h-full p-6 grow bg-base-100 rounded-2xl" >
1616 <template v-if =" torrent .encoding " >
1717 <Markdown :source =" torrent.encoding" />
1818 </template >
You can’t perform that action at this time.
0 commit comments