缩短弹窗通知显示时间
This commit is contained in:
@@ -472,7 +472,7 @@ export function bindChatEvents() {
|
||||
message: t.message || "",
|
||||
icon: t.icon || "💬",
|
||||
color: t.color || "#336699",
|
||||
duration: t.duration ?? 8000,
|
||||
duration: t.duration ?? 3000,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -525,7 +525,7 @@ function handleClaimResponse(response, data, button) {
|
||||
message: `恭喜您抢到了礼包 ${data.amount} ${typeLabel}!`,
|
||||
icon: "🧧",
|
||||
color: redPacketType === "exp" ? "#7c3aed" : "#dc2626",
|
||||
duration: 8000,
|
||||
duration: 3000,
|
||||
});
|
||||
|
||||
closeRedPacketModal();
|
||||
|
||||
@@ -461,7 +461,7 @@ function handleRiddleGameAnswered(e) {
|
||||
message: `<b>${winnerUsername}</b> 答对了「${answer}」,获得 ${rewardGold}💰 + ${rewardExp}⭐!`,
|
||||
icon: "🎉",
|
||||
color: "#16a34a",
|
||||
duration: 6000,
|
||||
duration: 3000,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ function createChatToast(container) {
|
||||
message,
|
||||
icon = "💬",
|
||||
color = "#336699",
|
||||
duration = 6000,
|
||||
duration = 3000,
|
||||
action = null,
|
||||
}) {
|
||||
const card = document.createElement("div");
|
||||
|
||||
Reference in New Issue
Block a user