diff --git a/html/bilibili_rank.html b/html/bilibili_rank.html
index b555643..5890901 100644
--- a/html/bilibili_rank.html
+++ b/html/bilibili_rank.html
@@ -20,6 +20,9 @@
td {
font-size: 12px;
+
+ max-width: 160px;
+ word-wrap:break-word;
}
@@ -358,7 +361,7 @@
${hotBand.up_from_v2} |
- ${JSON.stringify(hotBand.others)} |
+ ${JSON.stringify(hotBand.others)} |
`);
}
str.push(``);
diff --git a/index.html b/index.html
index 6d7b335..ef9d0b9 100644
--- a/index.html
+++ b/index.html
@@ -170,6 +170,8 @@
// 切换页面
switchPage(target, false);
// 更新下方导航栏选中状态
+ let oldActive = document.querySelector('.active')
+ if (oldActive) oldActive.classList.remove('active');
navbarItems.forEach(item => {
if (item.getAttribute('targetPage') === target) {
item.classList.add('active');