diff --git a/scripts/debug_render.py b/scripts/debug_render.py index e3ba590..6180fe6 100644 --- a/scripts/debug_render.py +++ b/scripts/debug_render.py @@ -135,7 +135,7 @@ async def debug_render( reason="总能精准接住每一个冷笑话,让群里充满快活的气息。", ), UserTitle( - name="王五", + name="https://www.example.com/very/long/url/that/might/overflow/the/container/if/word/break/is/not/set/correctly/and/it/keeps/going/and/going/forever", qq=112233445, title="深夜潜水员", mbti="INFP", @@ -178,7 +178,7 @@ async def debug_render( def main() -> None: parser = argparse.ArgumentParser( - description="Debug render tool for astrbot-qq-group-daily-analysis report templates." + description="Debug render tool for astrbot_plugin_qq_group_daily_analysis report templates." ) parser.add_argument( "-t", diff --git a/src/reports/templates/format/image_template.html b/src/reports/templates/format/image_template.html index 0bdeea2..f68f407 100644 --- a/src/reports/templates/format/image_template.html +++ b/src/reports/templates/format/image_template.html @@ -523,7 +523,7 @@ {{quotes_html}} diff --git a/src/reports/templates/format/pdf_template.html b/src/reports/templates/format/pdf_template.html index 0bdeea2..f68f407 100644 --- a/src/reports/templates/format/pdf_template.html +++ b/src/reports/templates/format/pdf_template.html @@ -523,7 +523,7 @@ {{quotes_html}} diff --git a/src/reports/templates/retro_futurism/image_template.html b/src/reports/templates/retro_futurism/image_template.html index b23309c..b92c946 100644 --- a/src/reports/templates/retro_futurism/image_template.html +++ b/src/reports/templates/retro_futurism/image_template.html @@ -92,9 +92,17 @@ height: 5px; } - .cb-1 { background: var(--c-dec-1); } - .cb-2 { background: var(--c-dec-2); } - .cb-3 { background: var(--c-dec-3); } + .cb-1 { + background: var(--c-dec-1); + } + + .cb-2 { + background: var(--c-dec-2); + } + + .cb-3 { + background: var(--c-dec-3); + } /* Header */ header { @@ -214,9 +222,17 @@ flex-shrink: 0; } - .crt-btn-1 { background: var(--c-dec-1); } - .crt-btn-2 { background: var(--c-dec-2); } - .crt-btn-3 { background: var(--c-dec-3); } + .crt-btn-1 { + background: var(--c-dec-1); + } + + .crt-btn-2 { + background: var(--c-dec-2); + } + + .crt-btn-3 { + background: var(--c-dec-3); + } .crt-title { margin-left: 12px; @@ -771,17 +787,20 @@
- +
- +
- +
@@ -888,10 +907,10 @@ Prompt // {{prompt_tokens}} Completion // {{completion_tokens}} - +
END_OF_LINE_
- + \ No newline at end of file diff --git a/src/reports/templates/retro_futurism/pdf_template.html b/src/reports/templates/retro_futurism/pdf_template.html index f049873..34abf03 100644 --- a/src/reports/templates/retro_futurism/pdf_template.html +++ b/src/reports/templates/retro_futurism/pdf_template.html @@ -92,9 +92,17 @@ height: 5px; } - .cb-1 { background: var(--c-dec-1); } - .cb-2 { background: var(--c-dec-2); } - .cb-3 { background: var(--c-dec-3); } + .cb-1 { + background: var(--c-dec-1); + } + + .cb-2 { + background: var(--c-dec-2); + } + + .cb-3 { + background: var(--c-dec-3); + } /* Header */ header { @@ -214,9 +222,17 @@ flex-shrink: 0; } - .crt-btn-1 { background: var(--c-dec-1); } - .crt-btn-2 { background: var(--c-dec-2); } - .crt-btn-3 { background: var(--c-dec-3); } + .crt-btn-1 { + background: var(--c-dec-1); + } + + .crt-btn-2 { + background: var(--c-dec-2); + } + + .crt-btn-3 { + background: var(--c-dec-3); + } .crt-title { margin-left: 12px; @@ -739,17 +755,20 @@
- +
- +
- +
@@ -856,10 +875,10 @@ Prompt // {{prompt_tokens}} Completion // {{completion_tokens}} - +
END_OF_LINE_
- + \ No newline at end of file diff --git a/src/reports/templates/scrapbook/image_template.html b/src/reports/templates/scrapbook/image_template.html index b48c4b8..555341e 100644 --- a/src/reports/templates/scrapbook/image_template.html +++ b/src/reports/templates/scrapbook/image_template.html @@ -52,6 +52,24 @@ box-sizing: border-box; } + .fluorescent-title { + color: #00bcd4; + text-shadow: 0 1px 5px #58bcc9; + font-weight: bold; + } + + .fluorescent-repo { + color: var(--accent-orange); + text-shadow: 0 1px 5px #bc6f58; + font-weight: bold; + } + + .fluorescent-info { + color: #00bcd4; + text-shadow: 0 1px 5px #58bcc9; + font-weight: bold; + } + body { font-family: var(--font-body); color: var(--ink-primary); @@ -516,6 +534,8 @@ font-family: var(--font-title); font-size: 1.25rem; line-height: 1.2; + word-break: break-all; + overflow-wrap: break-word; } .badges { @@ -562,6 +582,8 @@ margin-top: 15px; border-radius: 4px; position: relative; + word-break: break-all; + overflow-wrap: break-word; } .u-reason::before { @@ -861,10 +883,10 @@ Character Right -

Irotoridori no Sekai · {{current_datetime}}

-

Github: SXP-Simon/astrbot-qq-group-daily-analysis

-

- Tokens: {{total_tokens}} | Time: {{current_datetime}} +

Irotoridori no Sekai · {{current_datetime}}

+

Github: SXP-Simon/astrbot_plugin_qq_group_daily_analysis

+

+ Tokens: {{total_tokens}} | Prompt Tokens: {{prompt_tokens}} | Completion Tokens: {{completion_tokens}}

diff --git a/src/reports/templates/scrapbook/pdf_template.html b/src/reports/templates/scrapbook/pdf_template.html index b48c4b8..555341e 100644 --- a/src/reports/templates/scrapbook/pdf_template.html +++ b/src/reports/templates/scrapbook/pdf_template.html @@ -52,6 +52,24 @@ box-sizing: border-box; } + .fluorescent-title { + color: #00bcd4; + text-shadow: 0 1px 5px #58bcc9; + font-weight: bold; + } + + .fluorescent-repo { + color: var(--accent-orange); + text-shadow: 0 1px 5px #bc6f58; + font-weight: bold; + } + + .fluorescent-info { + color: #00bcd4; + text-shadow: 0 1px 5px #58bcc9; + font-weight: bold; + } + body { font-family: var(--font-body); color: var(--ink-primary); @@ -516,6 +534,8 @@ font-family: var(--font-title); font-size: 1.25rem; line-height: 1.2; + word-break: break-all; + overflow-wrap: break-word; } .badges { @@ -562,6 +582,8 @@ margin-top: 15px; border-radius: 4px; position: relative; + word-break: break-all; + overflow-wrap: break-word; } .u-reason::before { @@ -861,10 +883,10 @@ Character Right -

Irotoridori no Sekai · {{current_datetime}}

-

Github: SXP-Simon/astrbot-qq-group-daily-analysis

-

- Tokens: {{total_tokens}} | Time: {{current_datetime}} +

Irotoridori no Sekai · {{current_datetime}}

+

Github: SXP-Simon/astrbot_plugin_qq_group_daily_analysis

+

+ Tokens: {{total_tokens}} | Prompt Tokens: {{prompt_tokens}} | Completion Tokens: {{completion_tokens}}