mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
Fix bug
This commit is contained in:
parent
003856c940
commit
654818eac2
2 changed files with 15 additions and 4 deletions
|
@ -2,6 +2,10 @@ ChangeLog (Release Notes)
|
|||
=========================
|
||||
主に notable な changes を書いていきます
|
||||
|
||||
* デスクトップ版でも通知バッジを表示 (#918)
|
||||
* デザインの調整
|
||||
* バグ修正
|
||||
|
||||
3155 (2017/11/20)
|
||||
-----------------
|
||||
* デスクトップ版でユーザーの投稿グラフを見れるように
|
||||
|
|
|
@ -206,6 +206,13 @@
|
|||
}
|
||||
});
|
||||
|
||||
if (this.refs.left.children.length == 0) {
|
||||
this.refs.left.parentNode.removeChild(this.refs.left);
|
||||
}
|
||||
if (this.refs.right.children.length == 0) {
|
||||
this.refs.right.parentNode.removeChild(this.refs.right);
|
||||
}
|
||||
|
||||
if (this.opts.customize) {
|
||||
dialog('<i class="fa fa-info-circle"></i>カスタマイズのヒント',
|
||||
'<p>ホームのカスタマイズでは、ウィジェットを追加/削除したり、ドラッグ&ドロップして並べ替えたりすることができます。</p>' +
|
||||
|
@ -243,8 +250,8 @@
|
|||
}
|
||||
|
||||
if (!this.opts.customize) {
|
||||
this.scrollFollowerLeft = new ScrollFollower(this.refs.left, this.root.getBoundingClientRect().top);
|
||||
this.scrollFollowerRight = new ScrollFollower(this.refs.right, this.root.getBoundingClientRect().top);
|
||||
this.scrollFollowerLeft = this.refs.left.parentNode ? new ScrollFollower(this.refs.left, this.root.getBoundingClientRect().top) : null;
|
||||
this.scrollFollowerRight = this.refs.right.parentNode ? new ScrollFollower(this.refs.right, this.root.getBoundingClientRect().top) : null;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -254,8 +261,8 @@
|
|||
});
|
||||
|
||||
if (!this.opts.customize) {
|
||||
this.scrollFollowerLeft.dispose();
|
||||
this.scrollFollowerRight.dispose();
|
||||
if (this.scrollFollowerLeft) this.scrollFollowerLeft.dispose();
|
||||
if (this.scrollFollowerRight) this.scrollFollowerRight.dispose();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue