From f8ae31b6ac93277b973396579da778c9c3ac4d8c Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Mon, 10 May 2021 21:50:00 +0400 Subject: [PATCH] temp --- src/components/appMediaViewer.ts | 2 +- src/components/chat/contextMenu.ts | 4 ++++ src/scss/partials/_mediaViewer.scss | 1 + src/scss/partials/popups/_forward.scss | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/appMediaViewer.ts b/src/components/appMediaViewer.ts index f9739b3a..f99c1ecd 100644 --- a/src/components/appMediaViewer.ts +++ b/src/components/appMediaViewer.ts @@ -953,7 +953,7 @@ class AppMediaViewerBase = Promise.resolve(); const size = appPhotosManager.setAttachmentSize(media, container, maxWidth, maxHeight, mediaSizes.isMobile ? false : true); if(useContainerAsTarget) { diff --git a/src/components/chat/contextMenu.ts b/src/components/chat/contextMenu.ts index 9cb01a1d..600115ff 100644 --- a/src/components/chat/contextMenu.ts +++ b/src/components/chat/contextMenu.ts @@ -249,6 +249,10 @@ export default class ChatContextMenu { appDocsManager.saveDocFile(this.message.media.document); }, verify: () => { + if(this.message.pFlags.is_outgoing) { + return false; + } + const doc: MyDocument = this.message.media?.document; return doc && doc.type && !(['gif', 'photo', 'video', 'sticker'] as MyDocument['type'][]).includes(doc.type); } diff --git a/src/scss/partials/_mediaViewer.scss b/src/scss/partials/_mediaViewer.scss index e1fc3a6f..66038f01 100644 --- a/src/scss/partials/_mediaViewer.scss +++ b/src/scss/partials/_mediaViewer.scss @@ -312,6 +312,7 @@ width: 100% !important; height: 100% !important; max-width: 100vw !important; + max-height: calc((var(--vh, 1vh) * 100)); //height: calc(100% - 100px) !important; /* height: calc(100% - 50px) !important; top: calc(50% + 25px) !important; diff --git a/src/scss/partials/popups/_forward.scss b/src/scss/partials/popups/_forward.scss index 2b75a3de..a7cf8edb 100644 --- a/src/scss/partials/popups/_forward.scss +++ b/src/scss/partials/popups/_forward.scss @@ -48,7 +48,7 @@ line-height: var(--line-height); @include respond-to(handhelds) { - padding-left: 1rem; + padding-left: 1.0625rem; } }