mirror of https://github.com/node-red/node-red.git
Update packages/node_modules/@node-red/nodes/core/common/lib/debug/debug-utils.js
parent
8449ba9a3c
commit
7c9e2c41ba
|
|
@ -539,17 +539,19 @@ RED.debug = (function() {
|
|||
const msgInfos = `${o.topic ? " : " : ""}msg${o.property ? "." + property : ""} : ${format}`
|
||||
const topicTruncated = RED.utils.truncateString((o.topic ? topic : ""), 120 - msgInfos.length);
|
||||
const topicElem = $('<span class="red-ui-debug-msg-topic">' + topicTruncated + msgInfos + '</span>').appendTo(metaRow);
|
||||
RED.popover.create({
|
||||
content: topic,
|
||||
delay: { show: 750, hide: 50 },
|
||||
direction: "bottom",
|
||||
interactive: true,
|
||||
maxWidth: 300,
|
||||
target: topicElem,
|
||||
trigger: "hover",
|
||||
tooltip: true,
|
||||
size: "small"
|
||||
});
|
||||
if (topic !== topicTruncated) {
|
||||
RED.popover.create({
|
||||
content: topic,
|
||||
delay: { show: 750, hide: 50 },
|
||||
direction: "bottom",
|
||||
interactive: true,
|
||||
maxWidth: 300,
|
||||
target: topicElem,
|
||||
trigger: "hover",
|
||||
tooltip: true,
|
||||
size: "small"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
var atBottom = (sbc.scrollHeight-messageList.height()-sbc.scrollTop) < 5;
|
||||
|
|
|
|||
Loading…
Reference in New Issue