Skip to content

Commit 0d834cc

Browse files
committed
Merge #535: fix:[#525] more efficient solution
11478f9 fix:[#525] more efficient solution (ngthhu) Pull request description: ACKs for top commit: josecelano: ACK 585447a Tree-SHA512: 4aa664c7fabcac6a523c1588518452d90b16b368e9075434f89ce70fb1ec88b74c66a3ad622e51b5eca002551c6f6315a8538d900a877d2522bf6e8ec80fd120
2 parents 444470a + 585447a commit 0d834cc

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
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" 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>

components/torrent/TorrentCommentTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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>

components/torrent/TorrentCreatedByTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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>

components/torrent/TorrentCreationDateTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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>

components/torrent/TorrentDescriptionTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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>

components/torrent/TorrentEncodingTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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>

0 commit comments

Comments
 (0)