fix: export smallBadge from viewer.js, import in sidebar.js
This commit is contained in:
parent
f5cf2ca0da
commit
a91dfa65fc
@ -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
|
||||
|
||||
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user