mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Fix spacing on markdown documents
This commit is contained in:
parent
f76e1bb3cf
commit
0c5ac0d942
@ -118,7 +118,7 @@ const CombinedDetails = ({ processedEvent, topics, title, summary, image, price,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (processedEvent?.content) {
|
if (processedEvent?.content) {
|
||||||
return <MDDisplay className='p-2 rounded-lg w-full' source={processedEvent.content} />;
|
return <MDDisplay className='p-4 rounded-lg w-full' source={processedEvent.content} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
@ -245,9 +245,9 @@ const CombinedDetails = ({ processedEvent, topics, title, summary, image, price,
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{renderContent()}
|
{renderContent()}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ const CombinedLesson = ({ lesson, course, decryptionPerformed, isPaid, setComple
|
|||||||
if (isPaid && decryptionPerformed) {
|
if (isPaid && decryptionPerformed) {
|
||||||
return (
|
return (
|
||||||
<div ref={mdDisplayRef}>
|
<div ref={mdDisplayRef}>
|
||||||
<MDDisplay className={'p-2 rounded-lg w-full'} source={lesson.content} />
|
<MDDisplay className={'p-4 rounded-lg w-full'} source={lesson.content} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ const CombinedLesson = ({ lesson, course, decryptionPerformed, isPaid, setComple
|
|||||||
if (lesson?.content) {
|
if (lesson?.content) {
|
||||||
return (
|
return (
|
||||||
<div ref={mdDisplayRef}>
|
<div ref={mdDisplayRef}>
|
||||||
<MDDisplay className={'p-2 rounded-lg w-full'} source={lesson.content} />
|
<MDDisplay className={'p-4 rounded-lg w-full'} source={lesson.content} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ const DocumentLesson = ({ lesson, course, decryptionPerformed, isPaid, setComple
|
|||||||
|
|
||||||
const renderContent = () => {
|
const renderContent = () => {
|
||||||
if (isPaid && decryptionPerformed) {
|
if (isPaid && decryptionPerformed) {
|
||||||
return <MDDisplay className='p-2 rounded-lg w-full' source={lesson.content} />;
|
return <MDDisplay className='p-4 rounded-lg w-full' source={lesson.content} />;
|
||||||
}
|
}
|
||||||
if (isPaid && !decryptionPerformed) {
|
if (isPaid && !decryptionPerformed) {
|
||||||
return (
|
return (
|
||||||
@ -79,7 +79,7 @@ const DocumentLesson = ({ lesson, course, decryptionPerformed, isPaid, setComple
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (lesson?.content) {
|
if (lesson?.content) {
|
||||||
return <MDDisplay className='p-2 rounded-lg w-full' source={lesson.content} />;
|
return <MDDisplay className='p-4 rounded-lg w-full' source={lesson.content} />;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (processedEvent?.content) {
|
if (processedEvent?.content) {
|
||||||
return <MDDisplay className='p-2 rounded-lg w-full' source={processedEvent.content} />;
|
return <MDDisplay className='p-4 rounded-lg w-full' source={processedEvent.content} />;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -235,9 +235,9 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{renderContent()}
|
{renderContent()}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,8 +20,7 @@ const StackerNewsIconComponent = () => (
|
|||||||
|
|
||||||
const headerTemplate = (options, windowWidth, platform, id) => {
|
const headerTemplate = (options, windowWidth, platform, id) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-row justify-between items-end mb-2">
|
<div className="flex flex-row justify-between items-end my-2">
|
||||||
<GenericButton outlined severity="primary" size="small" className="py-0" onClick={options.onTogglerClick} icon={options.collapsed ? 'pi pi-chevron-down' : 'pi pi-chevron-up'} tooltip={windowWidth <= 768 ? null : 'comments'} tooltipOptions={{ position: 'right' }} />
|
|
||||||
<GenericButton
|
<GenericButton
|
||||||
label={windowWidth > 768 ? `View ${platform === 'nostr' ? 'on' : 'in'} ${platform}` : null}
|
label={windowWidth > 768 ? `View ${platform === 'nostr' ? 'on' : 'in'} ${platform}` : null}
|
||||||
icon="pi pi-external-link"
|
icon="pi pi-external-link"
|
||||||
@ -31,6 +30,7 @@ const headerTemplate = (options, windowWidth, platform, id) => {
|
|||||||
tooltip={windowWidth < 768 ? `View ${platform === 'nostr' ? 'on' : 'in'} ${platform}` : null}
|
tooltip={windowWidth < 768 ? `View ${platform === 'nostr' ? 'on' : 'in'} ${platform}` : null}
|
||||||
tooltipOptions={{ position: 'left' }}
|
tooltipOptions={{ position: 'left' }}
|
||||||
/>
|
/>
|
||||||
|
<GenericButton outlined severity="primary" size="small" className="py-0" onClick={options.onTogglerClick} icon={options.collapsed ? 'pi pi-chevron-down' : 'pi pi-chevron-up'} tooltip={windowWidth <= 768 ? null : 'comments'} tooltipOptions={{ position: 'left' }} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -104,11 +104,6 @@ const CommunityMessage = ({ message, searchQuery, windowWidth, platform }) => {
|
|||||||
</Panel>
|
</Panel>
|
||||||
) : (
|
) : (
|
||||||
<div className="w-full flex flex-row justify-between items-end">
|
<div className="w-full flex flex-row justify-between items-end">
|
||||||
{platform !== "nostr" ? (
|
|
||||||
<p className="rounded-lg text-sm text-gray-300">
|
|
||||||
{new Date(message.timestamp).toLocaleString()}
|
|
||||||
</p>
|
|
||||||
) : <div></div>}
|
|
||||||
<GenericButton
|
<GenericButton
|
||||||
label={windowWidth > 768 ? `View in ${platform}` : null}
|
label={windowWidth > 768 ? `View in ${platform}` : null}
|
||||||
icon="pi pi-external-link"
|
icon="pi pi-external-link"
|
||||||
@ -118,6 +113,11 @@ const CommunityMessage = ({ message, searchQuery, windowWidth, platform }) => {
|
|||||||
tooltip={windowWidth < 768 ? `View in ${platform}` : null}
|
tooltip={windowWidth < 768 ? `View in ${platform}` : null}
|
||||||
tooltipOptions={{ position: 'left' }}
|
tooltipOptions={{ position: 'left' }}
|
||||||
/>
|
/>
|
||||||
|
{platform !== "nostr" ? (
|
||||||
|
<p className="rounded-lg text-sm text-gray-300">
|
||||||
|
{new Date(message.timestamp).toLocaleString()}
|
||||||
|
</p>
|
||||||
|
) : <div></div>}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user