mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Fix video details layout
This commit is contained in:
parent
708ef4a3ac
commit
97fa99aa3b
@ -148,14 +148,14 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,
|
||||
<p key={index}>{line}</p>
|
||||
))}
|
||||
{processedEvent?.additionalLinks && processedEvent?.additionalLinks.length > 0 && (
|
||||
<>
|
||||
<div className="my-4">
|
||||
<p>Additional Links:</p>
|
||||
{processedEvent.additionalLinks.map((link, index) => (
|
||||
<a className="text-blue-500 hover:underline hover:text-blue-600" key={index} href={link} target="_blank" rel="noopener noreferrer">
|
||||
{link}
|
||||
</a>
|
||||
))}
|
||||
</>
|
||||
</div>
|
||||
)}
|
||||
<div className='flex items-center justify-between'>
|
||||
<div className='flex items-center'>
|
||||
@ -183,7 +183,7 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,
|
||||
{renderPaymentMessage()}
|
||||
{authorView ? (
|
||||
<div className='flex space-x-2 mt-4 sm:mt-0'>
|
||||
<GenericButton onClick={() => router.push(`/details/${processedEvent.d}/edit`)} label="Edit" severity='warning' outlined />
|
||||
<GenericButton onClick={() => router.push(`/details/${processedEvent.id}/edit`)} label="Edit" severity='warning' outlined />
|
||||
<GenericButton onClick={handleDelete} label="Delete" severity='danger' outlined />
|
||||
<GenericButton
|
||||
tooltip={isMobileView ? null : "View Nostr Note"}
|
||||
|
@ -132,7 +132,14 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au
|
||||
<div className="bg-gray-800/90 rounded-lg p-4 m-4 max-mob:m-0 max-tab:m-0 max-mob:rounded-t-none max-tab:rounded-t-none">
|
||||
<div className={`w-full flex flex-col items-start justify-start mt-2 px-2`}>
|
||||
<div className="flex flex-col items-start gap-2 w-full">
|
||||
<h1 className='text-4xl'>{title}</h1>
|
||||
<div className="flex flex-row items-center justify-between gap-2 w-full">
|
||||
<h1 className='text-4xl flex-grow'>{title}</h1>
|
||||
<ZapDisplay
|
||||
zapAmount={zapAmount}
|
||||
event={processedEvent}
|
||||
zapsLoading={zapsLoading && zapAmount === 0}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex flex-row items-center gap-2 w-full">
|
||||
{topics && topics.length > 0 && (
|
||||
topics.map((topic, index) => (
|
||||
@ -148,16 +155,17 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au
|
||||
<p key={index}>{line}</p>
|
||||
))}
|
||||
{processedEvent?.additionalLinks && processedEvent?.additionalLinks.length > 0 && (
|
||||
<>
|
||||
<div className="my-4">
|
||||
<p>Additional Links:</p>
|
||||
{processedEvent.additionalLinks.map((link, index) => (
|
||||
<a className="text-blue-500 hover:underline hover:text-blue-600" key={index} href={link} target="_blank" rel="noopener noreferrer">
|
||||
{link}
|
||||
</a>
|
||||
))}
|
||||
</>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className='flex items-center'>
|
||||
<Image
|
||||
alt="avatar image"
|
||||
@ -173,12 +181,6 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<ZapDisplay
|
||||
zapAmount={zapAmount}
|
||||
event={processedEvent}
|
||||
zapsLoading={zapsLoading && zapAmount === 0}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-full flex flex-row justify-end mt-4">
|
||||
{renderPaymentMessage()}
|
||||
|
Loading…
x
Reference in New Issue
Block a user