fix email note body height

This commit is contained in:
Yuri Kuznetsov
2025-01-09 11:39:10 +02:00
parent dbc96859af
commit 4e804692ac
@@ -275,12 +275,12 @@ class EmailReceivedNoteStreamView extends NoteStreamView {
await this.reRender();
if (minHeight) {
const iframe = this.bodyFieldView.element.querySelector('iframe');
const bodyContainer = this.bodyFieldView.element;
if (iframe) {
iframe.style.minHeight = minHeight + 'px';
if (bodyContainer) {
bodyContainer.style.minHeight = minHeight + 'px';
setTimeout(() => iframe.style.minHeight = '', 200);
setTimeout(() => bodyContainer.style.minHeight = '', 200);
}
}
}