temp
This commit is contained in:
parent
1adeff95d0
commit
f8ae31b6ac
@ -953,7 +953,7 @@ class AppMediaViewerBase<ContentAdditionType extends string, ButtonsAdditionType
|
||||
|
||||
//const maxWidth = appPhotosManager.windowW - 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();
|
||||
const size = appPhotosManager.setAttachmentSize(media, container, maxWidth, maxHeight, mediaSizes.isMobile ? false : true);
|
||||
if(useContainerAsTarget) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -48,7 +48,7 @@
|
||||
line-height: var(--line-height);
|
||||
|
||||
@include respond-to(handhelds) {
|
||||
padding-left: 1rem;
|
||||
padding-left: 1.0625rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user