fix: export smallBadge from viewer.js, import in sidebar.js
All checks were successful
CI / lint (push) Successful in 13s
CI / security (push) Successful in 9s
CI / test (push) Successful in 17s
CI / build (push) Successful in 2s

This commit is contained in:
Bruno Charest 2026-05-28 20:43:50 -04:00
parent f5cf2ca0da
commit a91dfa65fc
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import { safeCreateIcons, getFileIcon } from './utils.js';
import { api } from './auth.js';
import { populateCustomDropdown } from './ui.js';
import { _populateRecentVaultFilter } from './config.js';
import { el, icon, getVaultIcon } from './viewer.js';
import { el, icon, getVaultIcon, smallBadge } from './viewer.js';
// ---------------------------------------------------------------------------
// Vault context switching

View File

@ -631,7 +631,7 @@ export function icon(name, size) {
return i;
}
function smallBadge(count) {
export function smallBadge(count) {
const s = document.createElement("span");
s.className = "badge-small";
s.style.cssText = "font-size:0.68rem;color:var(--text-muted);margin-left:4px";