Fix date picker position on February
This commit is contained in:
parent
1edd1db4f6
commit
4cbcaccc83
@ -216,13 +216,15 @@ export default class ChatBubbles {
|
|||||||
|
|
||||||
if(message.media?.document) {
|
if(message.media?.document) {
|
||||||
const element = bubble.querySelector(`audio-element[message-id="${tempId}"], .document[data-doc-id="${tempId}"]`) as HTMLElement;
|
const element = bubble.querySelector(`audio-element[message-id="${tempId}"], .document[data-doc-id="${tempId}"]`) as HTMLElement;
|
||||||
if(element instanceof AudioElement) {
|
if(element) {
|
||||||
element.setAttribute('doc-id', message.media.document.id);
|
if(element instanceof AudioElement) {
|
||||||
element.setAttribute('message-id', '' + mid);
|
element.setAttribute('doc-id', message.media.document.id);
|
||||||
element.message = message;
|
element.setAttribute('message-id', '' + mid);
|
||||||
element.onLoad(true);
|
element.message = message;
|
||||||
} else {
|
element.onLoad(true);
|
||||||
element.dataset.docId = message.media.document.id;
|
} else {
|
||||||
|
element.dataset.docId = message.media.document.id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -333,9 +333,8 @@ export default class PopupDatePicker extends PopupElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const lines = this.month.childElementCount / 7;
|
const lines = Math.ceil(this.month.childElementCount / 7);
|
||||||
this.container.dataset.lines = '' + lines;
|
this.container.dataset.lines = '' + lines;
|
||||||
this.container.classList.toggle('is-max-lines', lines > 6);
|
|
||||||
|
|
||||||
this.monthsContainer.append(this.month);
|
this.monthsContainer.append(this.month);
|
||||||
}
|
}
|
||||||
|
@ -258,7 +258,7 @@ export class AppImManager {
|
|||||||
this.chatsSelectTabDebounced();
|
this.chatsSelectTabDebounced();
|
||||||
|
|
||||||
if(rootScope.settings.animationsEnabled) { // ! нужно переделать на animation, так как при лаге анимация будет длиться не 250мс
|
if(rootScope.settings.animationsEnabled) { // ! нужно переделать на animation, так как при лаге анимация будет длиться не 250мс
|
||||||
dispatchHeavyAnimationEvent(pause(250), 250);
|
dispatchHeavyAnimationEvent(pause(250 + 150), 250 + 150);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -517,7 +517,7 @@ export class AppImManager {
|
|||||||
this.log('selectTab', id, prevTabId);
|
this.log('selectTab', id, prevTabId);
|
||||||
|
|
||||||
if(prevTabId !== -1 && prevTabId !== id && rootScope.settings.animationsEnabled) {
|
if(prevTabId !== -1 && prevTabId !== id && rootScope.settings.animationsEnabled) {
|
||||||
const transitionTime = mediaSizes.isMobile ? 250 : 200;
|
const transitionTime = (mediaSizes.isMobile ? 250 : 200) + 100; // * cause transition time could be > 250ms
|
||||||
dispatchHeavyAnimationEvent(pause(transitionTime), transitionTime);
|
dispatchHeavyAnimationEvent(pause(transitionTime), transitionTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -589,7 +589,7 @@ export class AppImManager {
|
|||||||
spliced.forEach(chat => {
|
spliced.forEach(chat => {
|
||||||
chat.destroy();
|
chat.destroy();
|
||||||
});
|
});
|
||||||
}, 250);
|
}, 250 + 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
public setPeer(peerId: number, lastMsgId?: number): boolean {
|
public setPeer(peerId: number, lastMsgId?: number): boolean {
|
||||||
|
@ -11,10 +11,14 @@
|
|||||||
padding: 12px 14px;
|
padding: 12px 14px;
|
||||||
|
|
||||||
@media (min-height: 470px) {
|
@media (min-height: 470px) {
|
||||||
&.is-max-lines {
|
&[data-lines="7"] {
|
||||||
top: 19px;
|
top: 19px;
|
||||||
//left: 8px;
|
//left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&[data-lines="5"] {
|
||||||
|
top: -19px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user