Browse Source

temp

master
Eduard Kuzmenko 4 years ago
parent
commit
f8ae31b6ac
  1. 2
      src/components/appMediaViewer.ts
  2. 4
      src/components/chat/contextMenu.ts
  3. 1
      src/scss/partials/_mediaViewer.scss
  4. 2
      src/scss/partials/popups/_forward.scss

2
src/components/appMediaViewer.ts

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

4
src/components/chat/contextMenu.ts

@ -249,6 +249,10 @@ export default class ChatContextMenu {
appDocsManager.saveDocFile(this.message.media.document); appDocsManager.saveDocFile(this.message.media.document);
}, },
verify: () => { verify: () => {
if(this.message.pFlags.is_outgoing) {
return false;
}
const doc: MyDocument = this.message.media?.document; const doc: MyDocument = this.message.media?.document;
return doc && doc.type && !(['gif', 'photo', 'video', 'sticker'] as MyDocument['type'][]).includes(doc.type); return doc && doc.type && !(['gif', 'photo', 'video', 'sticker'] as MyDocument['type'][]).includes(doc.type);
} }

1
src/scss/partials/_mediaViewer.scss

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

2
src/scss/partials/popups/_forward.scss

@ -48,7 +48,7 @@
line-height: var(--line-height); line-height: var(--line-height);
@include respond-to(handhelds) { @include respond-to(handhelds) {
padding-left: 1rem; padding-left: 1.0625rem;
} }
} }

Loading…
Cancel
Save