From 97fa99aa3bebf16d40e0e546d3da54d191cc3843 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Wed, 16 Oct 2024 17:10:42 -0500 Subject: [PATCH] Fix video details layout --- .../content/documents/DocumentDetails.js | 6 +-- src/components/content/videos/VideoDetails.js | 46 ++++++++++--------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/src/components/content/documents/DocumentDetails.js b/src/components/content/documents/DocumentDetails.js index 26e558f..7dc1f18 100644 --- a/src/components/content/documents/DocumentDetails.js +++ b/src/components/content/documents/DocumentDetails.js @@ -148,14 +148,14 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,

{line}

))} {processedEvent?.additionalLinks && processedEvent?.additionalLinks.length > 0 && ( - <> +

Additional Links:

{processedEvent.additionalLinks.map((link, index) => ( {link} ))} - +
)}
@@ -183,7 +183,7 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price, {renderPaymentMessage()} {authorView ? (
- router.push(`/details/${processedEvent.d}/edit`)} label="Edit" severity='warning' outlined /> + router.push(`/details/${processedEvent.id}/edit`)} label="Edit" severity='warning' outlined />
-

{title}

+
+

{title}

+ +
{topics && topics.length > 0 && ( topics.map((topic, index) => ( @@ -148,36 +155,31 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au

{line}

))} {processedEvent?.additionalLinks && processedEvent?.additionalLinks.length > 0 && ( - <> +

Additional Links:

{processedEvent.additionalLinks.map((link, index) => ( {link} ))} - +
)}
-
- avatar image -

- By{' '} - - {author?.username} - -

-
- +
+ avatar image +

+ By{' '} + + {author?.username} + +