Browse Source

Fix media viewer padding

master
morethanwords 3 years ago
parent
commit
65431310eb
  1. 3
      src/components/appMediaViewer.ts

3
src/components/appMediaViewer.ts

@ -1012,8 +1012,7 @@ class AppMediaViewerBase<ContentAdditionType extends string, ButtonsAdditionType @@ -1012,8 +1012,7 @@ class AppMediaViewerBase<ContentAdditionType extends string, ButtonsAdditionType
if(windowH < 1000000 && !mediaSizes.isMobile) {
padding = 32 + 120;
}
// const maxHeight = windowH - 120 - padding;
const maxHeight = windowH - 120;
const maxHeight = windowH - 120 - padding;
let thumbPromise: Promise<any> = Promise.resolve();
const size = appPhotosManager.setAttachmentSize(media, container, maxWidth, maxHeight, mediaSizes.isMobile ? false : true).photoSize;
if(useContainerAsTarget) {

Loading…
Cancel
Save