Added wrap to the postComponent stylesheet

This commit is contained in:
Ariadna 2025-04-22 23:54:45 -04:00
parent 3d38e0f68c
commit f4973e01fa
Signed by: ari
SSH key fingerprint: SHA256:j4xpQafvRcIH4rwZqM5aREIogWsCjyYohia7vH0+uZY
2 changed files with 14 additions and 4 deletions

View file

@ -16,7 +16,11 @@
});
});
// Infinite loading function
const onInfinite = ({ detail: { loaded, complete } } : { detail : { loaded : () => void, complete : () => void}}) => {
const onInfinite = ({
detail: { loaded, complete },
}: {
detail: { loaded: () => void; complete: () => void };
}) => {
getNextPosts().then((newPosts) => {
console.log("Loading next posts...");
if (newPosts.length > 0) {
@ -53,9 +57,7 @@
{#each posts as postObject}
<PostComponent post={postObject as Post} />
{/each}
<InfiniteLoading on:infinite={onInfinite}
distance={3000}
/>
<InfiniteLoading on:infinite={onInfinite} distance={3000} />
<div id="spacer"></div>
</div>
</div>

View file

@ -213,6 +213,14 @@
#postText {
margin: 0;
padding: 0;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
#headerText {
margin-left: 10px;