Browse Source

Return back media viewer changes

master
Eduard Kuzmenko 4 years ago
parent
commit
446b4b17fe
  1. 3
      src/components/appMediaViewer.ts
  2. 2
      src/scss/partials/_mediaViewer.scss

3
src/components/appMediaViewer.ts

@ -953,7 +953,8 @@ class AppMediaViewerBase<ContentAdditionType extends string, ButtonsAdditionType @@ -953,7 +953,8 @@ class AppMediaViewerBase<ContentAdditionType extends string, ButtonsAdditionType
//const maxWidth = appPhotosManager.windowW - 16;
const maxWidth = mediaSizes.isMobile ? this.pageEl.scrollWidth : this.pageEl.scrollWidth - 16;
const maxHeight = mediaSizes.isMobile ? appPhotosManager.windowH : appPhotosManager.windowH - 100;
// TODO: const maxHeight = mediaSizes.isMobile ? appPhotosManager.windowH : appPhotosManager.windowH - 100;
const maxHeight = appPhotosManager.windowH - 100;
let thumbPromise: Promise<any> = Promise.resolve();
const size = appPhotosManager.setAttachmentSize(media, container, maxWidth, maxHeight, mediaSizes.isMobile ? false : true);
if(useContainerAsTarget) {

2
src/scss/partials/_mediaViewer.scss

@ -312,7 +312,7 @@ @@ -312,7 +312,7 @@
width: 100% !important;
height: 100% !important;
max-width: 100vw !important;
max-height: calc((var(--vh, 1vh) * 100));
// TODO: max-height: calc((var(--vh, 1vh) * 100));
//height: calc(100% - 100px) !important;
/* height: calc(100% - 50px) !important;
top: calc(50% + 25px) !important;

Loading…
Cancel
Save