fix: export smallBadge from viewer.js, import in sidebar.js
This commit is contained in:
@@ -3,7 +3,7 @@ import { safeCreateIcons, getFileIcon } from './utils.js';
|
|||||||
import { api } from './auth.js';
|
import { api } from './auth.js';
|
||||||
import { populateCustomDropdown } from './ui.js';
|
import { populateCustomDropdown } from './ui.js';
|
||||||
import { _populateRecentVaultFilter } from './config.js';
|
import { _populateRecentVaultFilter } from './config.js';
|
||||||
import { el, icon, getVaultIcon } from './viewer.js';
|
import { el, icon, getVaultIcon, smallBadge } from './viewer.js';
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Vault context switching
|
// Vault context switching
|
||||||
|
|||||||
@@ -631,7 +631,7 @@ export function icon(name, size) {
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
function smallBadge(count) {
|
export function smallBadge(count) {
|
||||||
const s = document.createElement("span");
|
const s = document.createElement("span");
|
||||||
s.className = "badge-small";
|
s.className = "badge-small";
|
||||||
s.style.cssText = "font-size:0.68rem;color:var(--text-muted);margin-left:4px";
|
s.style.cssText = "font-size:0.68rem;color:var(--text-muted);margin-left:4px";
|
||||||
|
|||||||
Reference in New Issue
Block a user