mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 02:12:58 +08:00
update badge
This commit is contained in:
parent
ac9d761fb6
commit
5cfa207530
@ -1560,7 +1560,7 @@ app.registerExtension({
|
|||||||
|
|
||||||
if(badge_mode != 'none') {
|
if(badge_mode != 'none') {
|
||||||
let text = nicknames[nodeData.name.trim()];
|
let text = nicknames[nodeData.name.trim()];
|
||||||
if(text.length > 18) {
|
if(text.length > 20) {
|
||||||
text = text.substring(0,17)+"..";
|
text = text.substring(0,17)+"..";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1599,7 +1599,7 @@ app.registerExtension({
|
|||||||
if(badge_mode != 'none') {
|
if(badge_mode != 'none') {
|
||||||
let text = nicknames[node.type.trim()];
|
let text = nicknames[node.type.trim()];
|
||||||
|
|
||||||
if(text.length > 18) {
|
if(text.length > 20) {
|
||||||
text = text.substring(0,17)+"..";
|
text = text.substring(0,17)+"..";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user