trust mark for author

This commit is contained in:
Dr.Lt.Data
2024-06-09 17:20:15 +09:00
parent 1db1ca5ce6
commit b9f38f0d9c
5 changed files with 14 additions and 3 deletions

View File

@@ -563,9 +563,17 @@ export class CustomNodesInstaller extends ComfyDialog {
data1.innerHTML = i+1;
var data2 = document.createElement('td');
data2.style.maxWidth = "100px";
data2.style.maxWidth = "120px";
data2.className = "cm-node-author"
data2.textContent = ` ${data.author}`;
if(data.trust) {
data2.textContent = `1${data.author}`;
}
else {
data2.textContent = ` ${data.author}`;
}
data2.style.whiteSpace = "nowrap";
data2.style.overflow = "hidden";
data2.style.textOverflow = "ellipsis";