This commit is contained in:
MuslemRahimi 2024-06-05 18:59:38 +02:00
parent a4526a7caa
commit 50241d9ff3
2 changed files with 5 additions and 7 deletions

View File

@ -422,7 +422,7 @@ $: {
<div > <div >
<div class="relative mt-2"> <div class="relative mt-2">
<a href={"/community/post/"+posts?.id}> <a href={"/community/post/"+posts?.id}>
{#if posts.postType === 'text'} {#if posts?.postType === 'text'}
<!--Start PostType Text--> <!--Start PostType Text-->
<div class="flex flex-wrap md:flex-row"> <div class="flex flex-wrap md:flex-row">
<div class="cursor-pointer flex items-start"> <div class="cursor-pointer flex items-start">
@ -434,12 +434,10 @@ $: {
</div> </div>
<div class="break-normal ml-3 mt-5 pr-6 sm:pr-0"> <div class="p-3 text-sm sm:text-[1rem] whitespace-pre-line break-normal text-[#D7DADC]">
{@html posts?.description?.length > 182 ? posts?.description.slice(0, 182) + "..." : posts?.description} {@html posts?.description?.length > 400 ? posts?.description.slice(0, 400) + "..." : posts?.description}
</div> </div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -43,10 +43,10 @@ export const config = {
addClassToTag('a', 'text-blue-400 hover:text-white underline'); addClassToTag('a', 'text-blue-400 hover:text-white underline');
// Add classes to ordered lists // Add classes to ordered lists
addClassToTag('ol', 'list-decimal ml-10 text-sm'); addClassToTag('ol', 'list-decimal ml-4 text-sm');
// Add classes to unordered lists // Add classes to unordered lists
addClassToTag('ul', 'list-disc ml-10 text-sm -mt-5'); addClassToTag('ul', 'list-disc ml-4 text-sm -mt-5');
// Add classes to blockquotes and their paragraphs // Add classes to blockquotes and their paragraphs
function addClassToBlockquote() { function addClassToBlockquote() {