This commit is contained in:
宋辰轩
2024-04-23 11:02:48 +08:00
parent 812aed678c
commit c540357ea0
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -4,8 +4,8 @@
#mainContent .side {overflow-x: hidden; padding-right: 4px;}
#mainContent .main {overflow-x: hidden;}
#featureBar .nav-feature li:last-child {padding-left: 4px;}
#featureBar .nav-feature li:nth-last-child(2):before {content: ""; position: absolute; left: 2px; top: 5px; right: 0; bottom: 5px; width: 1px; background-color: var(--color-gray-300);}
#featureBar .nav-feature li.divider-before {padding-left: 4px;}
#featureBar .nav-feature li.divider-before:before {content: ""; position: absolute; left: -1px; top: 5px; bottom: 5px; width: 1px; background-color: var(--color-gray-300);}
.filter-btn {padding-left: 0.625rem !important; padding-right: 0.625rem !important;}
+8
View File
@@ -21,6 +21,7 @@ window.afterPageUpdate = function($target, info, options)
}
window.addTitle2Star();
window.addDivider();
window.initFilterPanel();
}
@@ -41,6 +42,13 @@ window.addTitle2Star = function()
$('.metric-collect').attr('title', collectStar);
}
window.addDivider = function()
{
let features = $('#featureBar .nav-feature').find('li.nav-item');
let lastItem = features[features.length - 1];
$(lastItem).addClass('divider-before');
}
/* 事件处理函数。 */
window.handleCheckboxChange = function($el)
{