@youtyan/code-viewer 0.1.48 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app.js +1 -1
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -13500,7 +13500,7 @@ ${frontmatter.yaml}
|
|
|
13500
13500
|
b2.classList.toggle("active", b2.dataset.view === STATE.sbView);
|
|
13501
13501
|
});
|
|
13502
13502
|
$$(".sb-tree-action").forEach((b2) => {
|
|
13503
|
-
b2.disabled = STATE.sbView !== "tree" || !
|
|
13503
|
+
b2.disabled = STATE.sbView !== "tree" || !files.length;
|
|
13504
13504
|
});
|
|
13505
13505
|
if (STATE.activeFile)
|
|
13506
13506
|
markActive(STATE.activeFile);
|