diff --git a/src/components/content/documents/DocumentDetails.js b/src/components/content/documents/DocumentDetails.js index 47804ee..a73074f 100644 --- a/src/components/content/documents/DocumentDetails.js +++ b/src/components/content/documents/DocumentDetails.js @@ -195,8 +195,9 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price, ) : (
- {course && window.open(`/course/${course}`, '_blank')} label="Open Course" tooltip="This is a lesson in a course" tooltipOptions={{ position: 'top' }} />} + {course && window.open(`/course/${course}`, '_blank')} label={isMobileView ? "Course" : "Open Course"} tooltip="This is a lesson in a course" tooltipOptions={{ position: 'top' }} />} {renderContent()}
-
-
+
+

{title}

- {topics && topics.length > 0 && ( - topics.map((topic, index) => ( - - )) - )} - {isLesson && } +
+ {topics && topics.length > 0 && ( + topics.map((topic, index) => ( + + )) + )} + {isLesson && } +
@@ -176,14 +178,14 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au
{authorView ? (
- router.push(`/details/${nAddress}/edit`)} label="Edit" severity='warning' outlined /> - - window.open(`https://nostr.band/${nAddress}`, '_blank')} tooltip={isMobileView ? null : "View Nostr Event"} tooltipOptions={{ position: 'right' }} /> + router.push(`/details/${nAddress}/edit`)} label="Edit" severity='warning' outlined /> + + window.open(`https://nostr.band/${nAddress}`, '_blank')} tooltip={isMobileView ? null : "View Nostr Event"} tooltipOptions={{ position: 'right' }} />
) : (
- {course && window.open(`/course/${course}`, '_blank')} label="Open Course" tooltip="This is a lesson in a course" tooltipOptions={{ position: 'top' }} />} - window.open(`https://nostr.band/${nAddress}`, '_blank')} tooltip={isMobileView ? null : "View Nostr Event"} tooltipOptions={{ position: paidResource ? 'left' : 'right' }} /> + {course && window.open(`/course/${course}`, '_blank')} label={isMobileView ? "Course" : "Open Course"} tooltip="This is a lesson in a course" tooltipOptions={{ position: 'top' }} />} + window.open(`https://nostr.band/${nAddress}`, '_blank')} tooltip={isMobileView ? null : "View Nostr Event"} tooltipOptions={{ position: paidResource ? 'left' : 'right' }} />
)}