fix: view source content in picture view
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
71749fa505
commit
16938f6078
|
|
@ -366,10 +366,7 @@ export const ModalInternal = memo(
|
|||
className="flex grow flex-col"
|
||||
>
|
||||
<div
|
||||
className={cn(
|
||||
"relative flex items-center",
|
||||
"max-h-[70vh] min-w-[300px] max-w-[90vw] lg:max-h-[calc(100vh-20rem)] lg:max-w-[70vw]",
|
||||
)}
|
||||
className={"relative flex items-center"}
|
||||
onPointerDownCapture={handleDrag}
|
||||
onPointerDown={handleResizeEnable}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -371,7 +371,12 @@ export const useEntryActions = ({
|
|||
active: showSourceContent,
|
||||
onClick: () => {
|
||||
if (!populatedEntry.entries.url) return
|
||||
if (view === FeedViewType.SocialMedia || view === FeedViewType.Videos) {
|
||||
const viewPreviewInModal = [
|
||||
FeedViewType.SocialMedia,
|
||||
FeedViewType.Videos,
|
||||
FeedViewType.Pictures,
|
||||
].includes(view!)
|
||||
if (viewPreviewInModal) {
|
||||
showSourceContentModal({
|
||||
title: populatedEntry.entries.title ?? undefined,
|
||||
src: populatedEntry.entries.url,
|
||||
|
|
|
|||
Loading…
Reference in New Issue