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
构建与发布 / 单测与集成测试 (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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user