From 196bf3d9a0a95ac09fe32179e8712fb8f15c6ad5 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Sat, 15 Nov 2025 11:34:51 +0800 Subject: [PATCH] fix: align without brand template --- .../api_rate_limit_limit_template_en-US.html | 69 ++++++++++++--- .../api_rate_limit_limit_template_zh-CN.html | 70 ++++++++++++--- ...api_rate_limit_warning_template_en-US.html | 69 ++++++++++++--- ...api_rate_limit_warning_template_zh-CN.html | 70 ++++++++++++--- .../trigger_events_limit_template_en-US.html | 88 ++++++++++++++----- .../trigger_events_limit_template_zh-CN.html | 88 ++++++++++++++----- ...r_events_usage_warning_template_en-US.html | 77 ++++++++++++---- ...r_events_usage_warning_template_zh-CN.html | 77 ++++++++++++---- 8 files changed, 490 insertions(+), 118 deletions(-) diff --git a/api/templates/without-brand/api_rate_limit_limit_template_en-US.html b/api/templates/without-brand/api_rate_limit_limit_template_en-US.html index f59a218489..2d0910aa33 100644 --- a/api/templates/without-brand/api_rate_limit_limit_template_en-US.html +++ b/api/templates/without-brand/api_rate_limit_limit_template_en-US.html @@ -18,9 +18,10 @@ .card { width: 600px; min-height: 434px; - margin: 40px auto; + margin: 40px auto 0; display: flex; flex-direction: column; + align-items: flex-start; background: #fcfcfd; border: 1px solid #ffffff; box-shadow: 0px 3px 10px -2px rgba(9, 9, 11, 0.08), 0px 2px 4px -2px rgba(9, 9, 11, 0.06); @@ -28,15 +29,22 @@ } .card-header { - padding: 36px 48px 24px; - min-height: 101px; + display: flex; + padding: 36px 48px 24px 48px; + flex-direction: column; + align-items: flex-start; + gap: 8px; + align-self: stretch; } + .card-content { display: flex; + padding: 8px 48px 48px 48px; flex-direction: column; + align-items: flex-start; gap: 16px; - padding: 8px 48px 48px; + align-self: stretch; width: 100%; } @@ -52,7 +60,7 @@ display: flex; flex-direction: column; gap: 12px; - padding: 16px 0; + padding: 16px 0 0; } .body-text { @@ -93,15 +101,51 @@ letter-spacing: -0.005em; color: #354052; } + + .signature { + margin-top: 28px; + margin-bottom: 16px; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; + } + + .signature-text { + margin: 0; + font-size: 14px; + line-height: 20px; + letter-spacing: -0.005em; + color: #354052; + } + + .email-footer { + margin: 20px auto 40px; + max-width: 600px; + color: #676f83; + text-align: center; + font-family: 'Inter', 'Arial', sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: -0.06px; + flex: 1 0 0; + }
-
+
+

You’ve reached your API Rate Limit

+

+ Dear {{ recipientName | default(workspaceName ~ ' team', true) }}, +

Your workspace {{workspaceName}} has used all available Monthly API Rate Limit for the {{planName}} Plan (limit: {{planLimit}}). @@ -112,13 +156,18 @@

To continue using the Dify API and unlock a higher limit, please upgrade to a paid plan.

+ {{ctaLabel}} +

+ Monthly API Rate Limit for the {{planName}} Plan will reset on {{resetDate}}. +

+
+
+

Best regards,

+

The Dify Team

- {{ctaLabel}} -

- Monthly API Rate Limit for the {{planName}} Plan will reset on {{resetDate}}. -

+ diff --git a/api/templates/without-brand/api_rate_limit_limit_template_zh-CN.html b/api/templates/without-brand/api_rate_limit_limit_template_zh-CN.html index 09bd80712d..fe79ff6104 100644 --- a/api/templates/without-brand/api_rate_limit_limit_template_zh-CN.html +++ b/api/templates/without-brand/api_rate_limit_limit_template_zh-CN.html @@ -18,9 +18,10 @@ .card { width: 600px; min-height: 434px; - margin: 40px auto; + margin: 40px auto 0; display: flex; flex-direction: column; + align-items: flex-start; background: #fcfcfd; border: 1px solid #ffffff; box-shadow: 0px 3px 10px -2px rgba(9, 9, 11, 0.08), 0px 2px 4px -2px rgba(9, 9, 11, 0.06); @@ -28,15 +29,22 @@ } .card-header { - padding: 36px 48px 24px; - min-height: 101px; + display: flex; + padding: 36px 48px 24px 48px; + flex-direction: column; + align-items: flex-start; + gap: 8px; + align-self: stretch; } + .card-content { display: flex; + padding: 8px 48px 48px 48px; flex-direction: column; + align-items: flex-start; gap: 16px; - padding: 8px 48px 48px; + align-self: stretch; width: 100%; } @@ -52,7 +60,7 @@ display: flex; flex-direction: column; gap: 12px; - padding: 16px 0; + padding: 16px 0 0; } .body-text { @@ -93,17 +101,53 @@ letter-spacing: -0.005em; color: #354052; } + + .signature { + margin-top: 28px; + margin-bottom: 16px; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; + } + + .signature-text { + margin: 0; + font-size: 14px; + line-height: 20px; + letter-spacing: -0.005em; + color: #354052; + } + + .email-footer { + margin: 20px auto 40px; + max-width: 600px; + color: #676f83; + text-align: center; + font-family: 'Inter', 'PingFang SC', 'Arial', sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: -0.06px; + flex: 1 0 0; + }
-
+
+

您的 API 速率额度已用尽

- 您的工作区 {{workspaceName}} 已用完 月度 API 速率额度,触及 + 亲爱的 {{ recipientName | default(workspaceName, true) }}, +

+

+ 您的工作区 {{workspaceName}} 已用完 月度 API 速率额度,触及 {{planName}} 计划(上限:{{planLimit}})

@@ -112,13 +156,17 @@

若要继续使用 Dify API 并解锁更高额度,请升级到付费套餐。

+ {{ctaLabel}} +

+ {{planName}} 计划的月度 API 速率额度 将于 {{resetDate}} 重置。

+
+
+

此致敬礼,

+

Dify 团队

- {{ctaLabel}} -

- {{planName}} 计划的月度 API 速率额度 将于 {{resetDate}} 重置。 -

+ diff --git a/api/templates/without-brand/api_rate_limit_warning_template_en-US.html b/api/templates/without-brand/api_rate_limit_warning_template_en-US.html index 93ec12dc96..16d43e3573 100644 --- a/api/templates/without-brand/api_rate_limit_warning_template_en-US.html +++ b/api/templates/without-brand/api_rate_limit_warning_template_en-US.html @@ -18,9 +18,10 @@ .card { width: 600px; min-height: 454px; - margin: 40px auto; + margin: 40px auto 0; display: flex; flex-direction: column; + align-items: flex-start; background: #fcfcfd; border: 1px solid #ffffff; box-shadow: 0px 3px 10px -2px rgba(9, 9, 11, 0.08), 0px 2px 4px -2px rgba(9, 9, 11, 0.06); @@ -28,15 +29,22 @@ } .card-header { - padding: 36px 48px 24px; - min-height: 101px; + display: flex; + padding: 36px 48px 24px 48px; + flex-direction: column; + align-items: flex-start; + gap: 8px; + align-self: stretch; } + .card-content { display: flex; + padding: 8px 48px 48px 48px; flex-direction: column; + align-items: flex-start; gap: 16px; - padding: 8px 48px 48px; + align-self: stretch; width: 100%; } @@ -52,7 +60,7 @@ display: flex; flex-direction: column; gap: 12px; - padding: 16px 0; + padding: 16px 0 0; } .body-text { @@ -93,15 +101,51 @@ letter-spacing: -0.005em; color: #354052; } + + .signature { + margin-top: 28px; + margin-bottom: 16px; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; + } + + .signature-text { + margin: 0; + font-size: 14px; + line-height: 20px; + letter-spacing: -0.005em; + color: #354052; + } + + .email-footer { + margin: 20px auto 40px; + max-width: 600px; + color: #676f83; + text-align: center; + font-family: 'Inter', 'Arial', sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: -0.06px; + flex: 1 0 0; + }
-
+
+

You’re nearing your API Rate Limit

+

+ Dear {{ recipientName | default(workspaceName ~ ' team', true) }}, +

Your workspace {{workspaceName}} has used 80% of its Monthly API Rate Limit for the {{planName}} Plan (limit: {{planLimit}}). @@ -113,13 +157,18 @@ To avoid service interruptions and ensure continued access to the Dify API, please consider upgrading your plan for a higher API Rate Limit.

+ {{ctaLabel}} +

+ Monthly API Rate Limit for the {{planName}} Plan will reset on {{resetDate}}. +

+
+
+

Best regards,

+

The Dify Team

- {{ctaLabel}} -

- Monthly API Rate Limit for the {{planName}} Plan will reset on {{resetDate}}. -

+ diff --git a/api/templates/without-brand/api_rate_limit_warning_template_zh-CN.html b/api/templates/without-brand/api_rate_limit_warning_template_zh-CN.html index cb04d4e56a..0130dcf347 100644 --- a/api/templates/without-brand/api_rate_limit_warning_template_zh-CN.html +++ b/api/templates/without-brand/api_rate_limit_warning_template_zh-CN.html @@ -18,9 +18,10 @@ .card { width: 600px; min-height: 454px; - margin: 40px auto; + margin: 40px auto 0; display: flex; flex-direction: column; + align-items: flex-start; background: #fcfcfd; border: 1px solid #ffffff; box-shadow: 0px 3px 10px -2px rgba(9, 9, 11, 0.08), 0px 2px 4px -2px rgba(9, 9, 11, 0.06); @@ -28,15 +29,22 @@ } .card-header { - padding: 36px 48px 24px; - min-height: 101px; + display: flex; + padding: 36px 48px 24px 48px; + flex-direction: column; + align-items: flex-start; + gap: 8px; + align-self: stretch; } + .card-content { display: flex; + padding: 8px 48px 48px 48px; flex-direction: column; + align-items: flex-start; gap: 16px; - padding: 8px 48px 48px; + align-self: stretch; width: 100%; } @@ -52,7 +60,7 @@ display: flex; flex-direction: column; gap: 12px; - padding: 16px 0; + padding: 16px 0 0; } .body-text { @@ -93,17 +101,53 @@ letter-spacing: -0.005em; color: #354052; } + + .signature { + margin-top: 28px; + margin-bottom: 16px; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; + } + + .signature-text { + margin: 0; + font-size: 14px; + line-height: 20px; + letter-spacing: -0.005em; + color: #354052; + } + + .email-footer { + margin: 20px auto 40px; + max-width: 600px; + color: #676f83; + text-align: center; + font-family: 'Inter', 'PingFang SC', 'Arial', sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: -0.06px; + flex: 1 0 0; + }
-
+
+

您的 API 速率额度接近上限

- 您的工作区 {{workspaceName}} 已使用 80% 的月度 API 速率额度,触及 + 亲爱的 {{ recipientName | default(workspaceName, true) }}, +

+

+ 您的工作区 {{workspaceName}} 已使用 80% 的月度 API 速率额度,触及 {{planName}} 计划(上限:{{planLimit}})

@@ -112,13 +156,17 @@

为避免服务中断并持续访问 Dify API,请考虑升级到额度更高的套餐。

+ {{ctaLabel}} +

+ {{planName}} 计划的月度 API 速率额度 将于 {{resetDate}} 重置。

+
+
+

此致敬礼,

+

Dify 团队

- {{ctaLabel}} -

- {{planName}} 计划的月度 API 速率额度 将于 {{resetDate}} 重置。 -

+ diff --git a/api/templates/without-brand/trigger_events_limit_template_en-US.html b/api/templates/without-brand/trigger_events_limit_template_en-US.html index aa0aa74c4c..359c4df9d4 100644 --- a/api/templates/without-brand/trigger_events_limit_template_en-US.html +++ b/api/templates/without-brand/trigger_events_limit_template_en-US.html @@ -18,9 +18,10 @@ .card { width: 600px; min-height: 454px; - margin: 40px auto; + margin: 40px auto 0; display: flex; flex-direction: column; + align-items: flex-start; background: #fcfcfd; border: 1px solid #ffffff; box-shadow: 0px 3px 10px -2px rgba(9, 9, 11, 0.08), 0px 2px 4px -2px rgba(9, 9, 11, 0.06); @@ -28,22 +29,22 @@ } .card-header { - padding: 36px 48px 24px; display: flex; + padding: 36px 48px 24px 48px; flex-direction: column; + align-items: flex-start; gap: 8px; + align-self: stretch; } - .card-header img { - width: 68px; - height: auto; - } .card-content { display: flex; + padding: 8px 48px 48px 48px; flex-direction: column; + align-items: flex-start; gap: 16px; - padding: 8px 48px 48px; + align-self: stretch; width: 100%; } @@ -59,7 +60,7 @@ display: flex; flex-direction: column; gap: 12px; - padding: 16px 0; + padding: 16px 0 0; } .body-text { @@ -100,38 +101,79 @@ letter-spacing: -0.005em; color: #354052; } + + .signature { + margin-top: 28px; + margin-bottom: 16px; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; + } + + .signature-text { + margin: 0; + font-size: 14px; + line-height: 20px; + letter-spacing: -0.005em; + color: #354052; + } + + .email-footer { + margin: 20px auto 40px; + max-width: 600px; + color: #676f83; + text-align: center; + font-family: 'Inter', 'Arial', sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: -0.06px; + flex: 1 0 0; + }
-
+
+

You’ve reached your trigger events limit

-

- Your workspace {{workspaceName}} has used all available {{usageScope | default('Trigger Events')}} for the - {{planName}} Plan (limit: {{planLimit}}). -

+

+ Dear {{ recipientName | default(workspaceName ~ ' team', true) }}, +

+

+ Your workspace {{workspaceName}} has used all available {{usageScope | default('Trigger Events')}} for the + {{planName}} Plan (limit: {{planLimit}}). +

Workflows triggered by {{triggerSources}} events have been temporarily paused.

To keep your workflows running without interruption, please upgrade your plan to unlock more Trigger Events.

+ {{ctaLabel}} +

+ + {% if resetLine is defined %} + {{ resetLine }} + {% else %} + Trigger Events for the {{planName}} Plan {{resetDescription}} + {% endif %} + +

+
+
+

Best regards,

+

The Dify Team

- {{ctaLabel}} -

- - {% if resetLine is defined %} - {{ resetLine }} - {% else %} - Trigger Events for the {{planName}} Plan {{resetDescription}} - {% endif %} - -

+ diff --git a/api/templates/without-brand/trigger_events_limit_template_zh-CN.html b/api/templates/without-brand/trigger_events_limit_template_zh-CN.html index 2a4c1dd3ac..65dc79e97c 100644 --- a/api/templates/without-brand/trigger_events_limit_template_zh-CN.html +++ b/api/templates/without-brand/trigger_events_limit_template_zh-CN.html @@ -18,9 +18,10 @@ .card { width: 600px; min-height: 454px; - margin: 40px auto; + margin: 40px auto 0; display: flex; flex-direction: column; + align-items: flex-start; background: #fcfcfd; border: 1px solid #ffffff; box-shadow: 0px 3px 10px -2px rgba(9, 9, 11, 0.08), 0px 2px 4px -2px rgba(9, 9, 11, 0.06); @@ -28,22 +29,22 @@ } .card-header { - padding: 36px 48px 24px; display: flex; + padding: 36px 48px 24px 48px; flex-direction: column; + align-items: flex-start; gap: 8px; + align-self: stretch; } - .card-header img { - width: 68px; - height: auto; - } .card-content { display: flex; + padding: 8px 48px 48px 48px; flex-direction: column; + align-items: flex-start; gap: 16px; - padding: 8px 48px 48px; + align-self: stretch; width: 100%; } @@ -59,7 +60,7 @@ display: flex; flex-direction: column; gap: 12px; - padding: 16px 0; + padding: 16px 0 0; } .body-text { @@ -100,38 +101,79 @@ letter-spacing: -0.005em; color: #354052; } + + .signature { + margin-top: 28px; + margin-bottom: 16px; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; + } + + .signature-text { + margin: 0; + font-size: 14px; + line-height: 20px; + letter-spacing: -0.005em; + color: #354052; + } + + .email-footer { + margin: 20px auto 40px; + max-width: 600px; + color: #676f83; + text-align: center; + font-family: 'Inter', 'PingFang SC', 'Arial', sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: -0.06px; + flex: 1 0 0; + }
-
+
+

您的触发事件额度已用尽

-

- 您的工作区 {{workspaceName}} 已用完 {{usageScope | default('触发事件额度')}},并耗尽 - {{planName}} 计划(上限:{{planLimit}}) 的全部额度。 -

+

+ 亲爱的 {{ recipientName | default(workspaceName, true) }}, +

+

+ 您的工作区 {{workspaceName}} 已用完 {{usageScope | default('触发事件额度')}},并耗尽 + {{planName}} 计划(上限:{{planLimit}}) 的全部额度。 +

{{triggerSources}} 触发的工作流已被暂时暂停。

为保证工作流不中断,请升级套餐以解锁更多触发事件额度。

+ {{ctaLabel}} +

+ + {% if resetLine is defined %} + {{ resetLine }} + {% else %} + {{planName}} 计划的触发事件额度{{resetDescription}} + {% endif %} + +

+
+
+

此致敬礼,

+

Dify 团队

- {{ctaLabel}} -

- - {% if resetLine is defined %} - {{ resetLine }} - {% else %} - {{planName}} 计划的触发事件额度{{resetDescription}} - {% endif %} - -

+ diff --git a/api/templates/without-brand/trigger_events_usage_warning_template_en-US.html b/api/templates/without-brand/trigger_events_usage_warning_template_en-US.html index 18fac7b8c7..cc80027369 100644 --- a/api/templates/without-brand/trigger_events_usage_warning_template_en-US.html +++ b/api/templates/without-brand/trigger_events_usage_warning_template_en-US.html @@ -18,9 +18,10 @@ .card { width: 600px; min-height: 454px; - margin: 40px auto; + margin: 40px auto 0; display: flex; flex-direction: column; + align-items: flex-start; background: #fcfcfd; border: 1px solid #ffffff; box-shadow: 0px 3px 10px -2px rgba(9, 9, 11, 0.08), 0px 2px 4px -2px rgba(9, 9, 11, 0.06); @@ -28,17 +29,22 @@ } .card-header { - padding: 36px 48px 24px; display: flex; + padding: 36px 48px 24px 48px; flex-direction: column; + align-items: flex-start; gap: 8px; + align-self: stretch; } + .card-content { display: flex; + padding: 8px 48px 48px 48px; flex-direction: column; + align-items: flex-start; gap: 16px; - padding: 8px 48px 48px; + align-self: stretch; width: 100%; } @@ -54,7 +60,7 @@ display: flex; flex-direction: column; gap: 12px; - padding: 16px 0; + padding: 16px 0 0; } .body-text { @@ -95,15 +101,51 @@ letter-spacing: -0.005em; color: #354052; } + + .signature { + margin-top: 28px; + margin-bottom: 16px; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; + } + + .signature-text { + margin: 0; + font-size: 14px; + line-height: 20px; + letter-spacing: -0.005em; + color: #354052; + } + + .email-footer { + margin: 20px auto 40px; + max-width: 600px; + color: #676f83; + text-align: center; + font-family: 'Inter', 'Arial', sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: -0.06px; + flex: 1 0 0; + }
-
+
+

You’re nearing your Trigger Events limit

+

+ Dear {{ recipientName | default(workspaceName ~ ' team', true) }}, +

Your workspace {{workspaceName}} has used {{usagePercent}} of its {{usageScope}} for the {{planName}} Plan (limit: {{planLimit}}). @@ -115,19 +157,24 @@

{{upgradeHint}}

+ {{ctaLabel}} +

+ + {% if resetLine is defined %} + {{ resetLine }} + {% else %} + Trigger Events for the {{planName}} Plan {{resetDescription}} + {% endif %} + +

+
+
+

Best regards,

+

The Dify Team

- {{ctaLabel}} -

- - {% if resetLine is defined %} - {{ resetLine }} - {% else %} - Trigger Events for the {{planName}} Plan {{resetDescription}} - {% endif %} - -

+ diff --git a/api/templates/without-brand/trigger_events_usage_warning_template_zh-CN.html b/api/templates/without-brand/trigger_events_usage_warning_template_zh-CN.html index 08ff1edabc..63251e52ea 100644 --- a/api/templates/without-brand/trigger_events_usage_warning_template_zh-CN.html +++ b/api/templates/without-brand/trigger_events_usage_warning_template_zh-CN.html @@ -18,9 +18,10 @@ .card { width: 600px; min-height: 454px; - margin: 40px auto; + margin: 40px auto 0; display: flex; flex-direction: column; + align-items: flex-start; background: #fcfcfd; border: 1px solid #ffffff; box-shadow: 0px 3px 10px -2px rgba(9, 9, 11, 0.08), 0px 2px 4px -2px rgba(9, 9, 11, 0.06); @@ -28,17 +29,22 @@ } .card-header { - padding: 36px 48px 24px; display: flex; + padding: 36px 48px 24px 48px; flex-direction: column; + align-items: flex-start; gap: 8px; + align-self: stretch; } + .card-content { display: flex; + padding: 8px 48px 48px 48px; flex-direction: column; + align-items: flex-start; gap: 16px; - padding: 8px 48px 48px; + align-self: stretch; width: 100%; } @@ -54,7 +60,7 @@ display: flex; flex-direction: column; gap: 12px; - padding: 16px 0; + padding: 16px 0 0; } .body-text { @@ -95,15 +101,51 @@ letter-spacing: -0.005em; color: #354052; } + + .signature { + margin-top: 28px; + margin-bottom: 16px; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; + } + + .signature-text { + margin: 0; + font-size: 14px; + line-height: 20px; + letter-spacing: -0.005em; + color: #354052; + } + + .email-footer { + margin: 20px auto 40px; + max-width: 600px; + color: #676f83; + text-align: center; + font-family: 'Inter', 'PingFang SC', 'Arial', sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: -0.06px; + flex: 1 0 0; + }
-
+
+

您的触发事件额度接近上限

+

+ 亲爱的 {{ recipientName | default(workspaceName, true) }}, +

您的工作区 {{workspaceName}} 已使用 {{usagePercent}}{{usageScope}},触及 {{planName}} 计划(上限:{{planLimit}})。 @@ -114,19 +156,24 @@

{{upgradeHint}}

+ {{ctaLabel}} +

+ + {% if resetLine is defined %} + {{ resetLine }} + {% else %} + {{planName}} 计划的触发事件额度{{resetDescription}} + {% endif %} + +

+
+
+

此致敬礼,

+

Dify 团队

- {{ctaLabel}} -

- - {% if resetLine is defined %} - {{ resetLine }} - {% else %} - {{planName}} 计划的触发事件额度{{resetDescription}} - {% endif %} - -

+