diff --git a/app/globals.css b/app/globals.css
index fbe3fb7..102cd03 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -283,9 +283,13 @@ footer{
width: max-content;
border-radius: 0.25rem;
} */
+.mediaDom .adm-image-viewer-slides-inner{
+ padding-top: 68px;
+}
.mediaDom .adm-image-viewer-slide{
- /* max-height: 90vh; */
- max-width: 100vw;
+ max-height: calc(100vh - 100px);
+ width: 100vw;
+
}
.photos-body img{
/* max-height: 90vh; */
@@ -303,8 +307,13 @@ footer{
border-radius: 0.25rem;
}
+.photos-bodyBox-full{
+ width: 100vw;
+ max-height: calc(100vh);
+}
.photos-bodyBox{
width: 100vw;
+ max-height: calc(100vh - 120px);
}
.adm-checkbox.adm-checkbox-checked .adm-checkbox-icon {
diff --git a/app/layout.js b/app/layout.js
index 907ab8a..e505cc1 100644
--- a/app/layout.js
+++ b/app/layout.js
@@ -84,7 +84,7 @@ export default function RootLayout({ children }) {
{/* */}
{/* */}
-
+
{/* */}
{/* */}
{/* */}
diff --git a/components/Photos/index.js b/components/Photos/index.js
index cc39ede..12400f6 100644
--- a/components/Photos/index.js
+++ b/components/Photos/index.js
@@ -71,6 +71,15 @@ export default function Photos({
setCurrentPhotos(newPhotos);
}
}, [media]);
+ useEffect(()=>{
+ // window.addEventListener('resize', (e)=>{
+ // // alert(window.innerHeight)
+ // setMaskHeight(window.innerHeight)
+ // });
+ return ()=>{
+ // window.removeEventListener("resize")
+ }
+ },[])
const showPhotos = (photos, index) => {
currentIndex.current = index;
const interval = setInterval(() => {
@@ -135,6 +144,7 @@ export default function Photos({
photos[index]?.type == "hid" ? "mediaDom photos-body" : "mediaDom"
}`;
// mediaDom.appendChild(btns);
+ document.body.style.overflow = 'hidden';
ImageViewer.clear();
ImageViewer.Multi.show({
images: photos.map((item) => item?.url),
@@ -167,6 +177,7 @@ export default function Photos({
afterClose: () => {
mediaDom.remove();
clearInterval(interval);
+ document.body.style.overflow = 'auto';
},
classNames: { body: "photos-bodyBox" },
});
diff --git a/utils/tools/handleFuns.js b/utils/tools/handleFuns.js
index 76f3f7b..0e020d1 100644
--- a/utils/tools/handleFuns.js
+++ b/utils/tools/handleFuns.js
@@ -66,7 +66,7 @@ export const handleShowVideo = (video) => {