feat: 分类计数改为括号样式并发布 v2.1.3
构建与发布 / 单测与集成测试 (push) Waiting to run
构建与发布 / 打包 ${{ matrix.platform }} ${{ matrix.arch }} (arm64, linux, ubuntu-24.04-arm) (push) Blocked by required conditions
构建与发布 / 打包 ${{ matrix.platform }} ${{ matrix.arch }} (arm64, macos, macos-15) (push) Blocked by required conditions
构建与发布 / 打包 ${{ matrix.platform }} ${{ matrix.arch }} (x64, linux, ubuntu-24.04) (push) Blocked by required conditions
构建与发布 / 打包 ${{ matrix.platform }} ${{ matrix.arch }} (x64, windows, windows-2025) (push) Blocked by required conditions
构建与发布 / 发布 GitHub Release (push) Blocked by required conditions

This commit is contained in:
lofyer
2026-08-06 18:37:50 +08:00
parent d6078098d6
commit c294b68e96
11 changed files with 53 additions and 21 deletions
+4 -3
View File
@@ -433,9 +433,10 @@ const Library = (() => {
);
const count = button.querySelector('.library-filter-count');
if (count) {
count.textContent = String(shelfId === '__uncategorized__'
const value = shelfId === '__uncategorized__'
? items.filter((item) => !item.shelfId).length
: items.length);
: items.length;
count.textContent = `${value}`;
}
});
const shelfList = $('libraryShelfList');
@@ -452,7 +453,7 @@ const Library = (() => {
name.textContent = shelf.name;
const count = document.createElement('span');
count.className = 'library-filter-count';
count.textContent = String(shelf.count || 0);
count.textContent = `${shelf.count || 0}`;
filter.append(name, count);
filter.onclick = () => selectShelf(shelf.id);