This commit is contained in:
Mirco Wittrien 2020-09-01 11:03:35 +02:00
parent 2b7a74001d
commit 2a79f03578
6 changed files with 6 additions and 5 deletions

View File

@ -835,6 +835,7 @@
tooltip.style.setProperty("z-index", options.zIndex || 1002, "important");
tooltipContent.style.setProperty("z-index", options.zIndex || 1002, "important");
}
if (typeof options.width == "number" && options.width > 196) tooltip.style.setProperty("max-width", `${options.width}px`, "important");
if (customBackgroundColor || options.unhideable) BDFDB.DOMUtils.addClass(tooltip, BDFDB.disCN.tooltipcustom);
else if (options.color && BDFDB.disCN["tooltip" + options.color.toLowerCase()]) BDFDB.DOMUtils.addClass(tooltip, BDFDB.disCN["tooltip" + options.color.toLowerCase()]);
else BDFDB.DOMUtils.addClass(tooltip, BDFDB.disCN.tooltipblack);

File diff suppressed because one or more lines are too long

View File

@ -346,7 +346,7 @@ var CompleteTimestamps = (_ => {
getTimestamp (languageId, time) {
let timeObj = time || new Date();
if (typeof time == "string") timeObj = new Date(time);
if (typeof time == "string" || typeof time == "number") timeObj = new Date(time);
if (timeObj.toString() == "Invalid Date") timeObj = new Date(parseInt(time));
if (timeObj.toString() == "Invalid Date") return;
let timeString = "";

View File

@ -291,7 +291,7 @@ var CreationDate = (_ => {
getTimestamp (languageId, time) {
let timeObj = time || new Date();
if (typeof time == "string") timeObj = new Date(time);
if (typeof time == "string" || typeof time == "number") timeObj = new Date(time);
if (timeObj.toString() == "Invalid Date") timeObj = new Date(parseInt(time));
if (timeObj.toString() == "Invalid Date") return;
let timeString = "";

View File

@ -304,7 +304,7 @@ var JoinedAtDate = (_ => {
getTimestamp (languageId, time) {
let timeObj = time || new Date();
if (typeof time == "string") timeObj = new Date(time);
if (typeof time == "string" || typeof time == "number") timeObj = new Date(time);
if (timeObj.toString() == "Invalid Date") timeObj = new Date(parseInt(time));
if (timeObj.toString() == "Invalid Date") return;
let timeString = "";

View File

@ -328,7 +328,7 @@ var LastMessageDate = (_ => {
getTimestamp (languageId, time) {
let timeObj = time || new Date();
if (typeof time == "string") timeObj = new Date(time);
if (typeof time == "string" || typeof time == "number") timeObj = new Date(time);
if (timeObj.toString() == "Invalid Date") timeObj = new Date(parseInt(time));
if (timeObj.toString() == "Invalid Date") return;
let timeString = "";