diff --git a/yuntu/yuntuCrowdPortraitDownload/yuntuCrowdPortraitDownload.user.js b/yuntu/yuntuCrowdPortraitDownload/yuntuCrowdPortraitDownload.user.js index 7160f8d..4607536 100644 --- a/yuntu/yuntuCrowdPortraitDownload/yuntuCrowdPortraitDownload.user.js +++ b/yuntu/yuntuCrowdPortraitDownload/yuntuCrowdPortraitDownload.user.js @@ -588,6 +588,26 @@ return `${brandPart}_${crowdSamplePart}_${crowdCountPart}_${timestampPart}.csv` } + function ensureProgressToastStyle() { + if (document.getElementById("yuntu-portrait-progress-toast-style")) { + return + } + + const style = document.createElement("style") + style.id = "yuntu-portrait-progress-toast-style" + style.textContent = ` + .yuntu-portrait-progress-toast { + overflow: hidden !important; + } + + .yuntu-portrait-progress-toast .swal2-html-container { + margin: 0.75em 0 0 !important; + overflow: hidden !important; + } + ` + document.head.appendChild(style) + } + function showToast(icon, title) { const Toast = Swal.mixin({ toast: true, @@ -616,28 +636,29 @@ const percent = this.getProgressPercent() const remainingCount = Math.max(this.totalRequestCount - this.completedRequestCount, 0) const crowdHtml = crowdName - ? `