Revert "refactor: 画面サイズのしきい値をconstにまとめる"
This reverts commit 05ca36f400
.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { MOBILE_THRESHOLD } from "@/const.js";
|
||||
|
||||
type ScrollBehavior = 'auto' | 'smooth' | 'instant';
|
||||
|
||||
@@ -119,7 +118,7 @@ export function scrollToBottom(
|
||||
container.scroll({ top: el.scrollHeight - container.clientHeight + getStickyTop(el, container) || 0, ...options });
|
||||
} else {
|
||||
window.scroll({
|
||||
top: (el.scrollHeight - window.innerHeight + getStickyTop(el, container) + (window.innerWidth <= MOBILE_THRESHOLD ? 96 : 0)) || 0,
|
||||
top: (el.scrollHeight - window.innerHeight + getStickyTop(el, container) + (window.innerWidth <= 500 ? 96 : 0)) || 0,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user