Skip to content

Commit

Permalink
interpage bottom mobile bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sctop committed Dec 29, 2023
1 parent f1d49fd commit aab81f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions static/js/interpage_bottom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
function interpageBottomAdjust() {
const screenWidth = document.body.clientWidth;
if (screenWidth <= 960) {
// 移动端还原为正常情况
document.getElementById("interpage-navi-bottom").children[0].style.paddingLeft = "0";
document.getElementById("interpage-navi-bottom-right").style.flex = "initial";
return;
}

const interpageBottomDivWidth = document.getElementById("interpage-navi-bottom").children[0].clientWidth;

if (Math.abs(screenWidth - interpageBottomDivWidth) > 100) {
Expand Down

0 comments on commit aab81f4

Please sign in to comment.