diff --git a/apps/frontend/src/app/(preview)/p/[id]/page.tsx b/apps/frontend/src/app/(preview)/p/[id]/page.tsx
index c31686cc..fbb6c8dd 100644
--- a/apps/frontend/src/app/(preview)/p/[id]/page.tsx
+++ b/apps/frontend/src/app/(preview)/p/[id]/page.tsx
@@ -146,9 +146,9 @@ export default async function Auth({
{JSON.parse(p?.image || '[]').map((p: any) => (
-
+
))}
diff --git a/libraries/react-shared-libraries/src/helpers/video.or.image.tsx b/libraries/react-shared-libraries/src/helpers/video.or.image.tsx
index 1b2e90c7..a24ffa42 100644
--- a/libraries/react-shared-libraries/src/helpers/video.or.image.tsx
+++ b/libraries/react-shared-libraries/src/helpers/video.or.image.tsx
@@ -1,14 +1,30 @@
import { FC } from 'react';
+import { clsx } from 'clsx';
-export const VideoOrImage: FC<{ src: string; autoplay: boolean }> = (props) => {
- const { src, autoplay } = props;
+export const VideoOrImage: FC<{
+ src: string;
+ autoplay: boolean;
+ isContain?: boolean;
+}> = (props) => {
+ const { src, autoplay, isContain } = props;
if (src.indexOf('mp4') > -1) {
- return ;
+ return (
+
+ );
}
return (
);