this repo has no description

Proper post word wrapping (#3)

Co-authored-by: ari <ariadna@omg.lol>
Reviewed-on: https://git.witchcraft.systems/scientific-witchery/pds-dash/pulls/3

Changed files
+10 -4
src
+6 -4
src/App.svelte
··· 16 16 }); 17 17 }); 18 18 // Infinite loading function 19 - const onInfinite = ({ detail: { loaded, complete } } : { detail : { loaded : () => void, complete : () => void}}) => { 19 + const onInfinite = ({ 20 + detail: { loaded, complete }, 21 + }: { 22 + detail: { loaded: () => void; complete: () => void }; 23 + }) => { 20 24 getNextPosts().then((newPosts) => { 21 25 console.log("Loading next posts..."); 22 26 if (newPosts.length > 0) { ··· 53 57 {#each posts as postObject} 54 58 <PostComponent post={postObject as Post} /> 55 59 {/each} 56 - <InfiniteLoading on:infinite={onInfinite} 57 - distance={3000} 58 - /> 60 + <InfiniteLoading on:infinite={onInfinite} distance={3000} /> 59 61 <div id="spacer"></div> 60 62 </div> 61 63 </div>
+4
src/lib/PostComponent.svelte
··· 213 213 #postText { 214 214 margin: 0; 215 215 padding: 0; 216 + overflow-wrap: break-word; 217 + word-wrap: normal; 218 + word-break: break-word; 219 + hyphens: none; 216 220 } 217 221 #headerText { 218 222 margin-left: 10px;