mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-24 05:24:25 +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…
x
Reference in New Issue
Block a user