mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
Better solution for #516 ?
This commit is contained in:
parent
867f8ff199
commit
0953d0d76e
1 changed files with 3 additions and 2 deletions
|
@ -497,8 +497,9 @@ export class MessageModel extends AbstractModel {
|
|||
initView() {
|
||||
// init BlockquoteSwitcher
|
||||
this.body.querySelectorAll('blockquote:not(.rl-bq-switcher)').forEach(node => {
|
||||
if (node.textContent.trim()) {
|
||||
// if (node.textContent.trim() && !node.parentNode.closest('blockquote')) {
|
||||
node.removeAttribute('style')
|
||||
if (node.textContent.trim() && !node.parentNode.closest?.('blockquote')) {
|
||||
let h = node.clientHeight || getRealHeight(node);
|
||||
if (0 === h || 100 < h) {
|
||||
const el = Element.fromHTML('<span class="rlBlockquoteSwitcher">•••</span>');
|
||||
|
|
Loading…
Reference in a new issue