diff --git a/plugins/message_summary/config.toml b/plugins/message_summary/config.toml index 8544a9b..f8540c7 100644 --- a/plugins/message_summary/config.toml +++ b/plugins/message_summary/config.toml @@ -23,6 +23,6 @@ summary_image_template_path = "plugins/message_summary/templates/gemini_summary_ # 1. 这里可以覆盖 md2image 默认 780 宽; # 2. 模板卡片宽度约 420,截图建议 460~520 区间; # 3. scale 提高后字体与线条会更清晰。 -template_viewport_width = 500 +template_viewport_width = 780 template_viewport_height = 960 template_device_scale_factor = 2.0 diff --git a/plugins/message_summary/templates/gemini_summary_card.html b/plugins/message_summary/templates/gemini_summary_card.html index b84aec7..df91979 100644 --- a/plugins/message_summary/templates/gemini_summary_card.html +++ b/plugins/message_summary/templates/gemini_summary_card.html @@ -18,7 +18,7 @@ } .report-container { - width: 420px; + width: 520px; margin: 0 auto; background: #ffffff; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); @@ -26,12 +26,12 @@ } .label-tiny { - font-size: 9px; + font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; - margin-bottom: 2px; + margin-bottom: 1px; display: block; } @@ -40,67 +40,67 @@ .card-inner { border: 1px solid #f1f5f9; border-radius: 4px; - padding: 8px; + padding: 6px; background: #fff; } .conclusion-area { background-color: #f0fdf4; border-left: 2px solid #22c55e; - padding: 8px; + padding: 6px; border-radius: 0 4px 4px 0; } - +
-
+
-

CHAT INSIGHTS REPORT

-

ID: {{ generated_at }}

+

CHAT INSIGHTS REPORT

+

ID: {{ generated_at }}

-
{{ summary_metrics.activity_badge or "Daily Archive" }}
+
{{ summary_metrics.activity_badge or "Daily Archive" }}
{% for card in summary_metrics.kpi_cards|default([]) %} -
+
{{ card.label }} - {{ card.value }} + {{ card.value }}
{% endfor %}
-
+
# Personal Interest Radar
{% for tag in summary_metrics.topic_tags|default([]) %} - {{ tag }} + {{ tag }} {% endfor %} {% if not (summary_metrics.topic_tags|default([])) %} - 暂无热点标签 + 暂无热点标签 {% endif %}
-
+
# {{ summary_doc_title or title }}
-

{{ summary_lead or "暂无总结内容。" }}

+

{{ summary_lead or "暂无总结内容。" }}

# Key Discussions {% for topic in summary_topics|default([]) %}
- {{ "%02d"|format(loop.index) }}. {{ topic["title"] }} + {{ "%02d"|format(loop.index) }}. {{ topic["title"] }}
{% if topic["time_range"] or topic["participants"] %} -
+
{% if topic["time_range"] %}
时段:{{ topic["time_range"] }}
{% endif %} {% if topic["participants"] %}
参与人数:{{ topic["participants"] }}
{% endif %}
@@ -109,14 +109,14 @@ {% if topic["analysis_points"]|default([]) %}
Background -

{{ topic["analysis_points"][0] }}

+

{{ topic["analysis_points"][0] }}

{% endif %} {% if topic["overview_points"]|default([]) %}
Key Points -
    +
      {% for line in topic["overview_points"] %}
    • {{ line }}
    • {% endfor %} @@ -127,26 +127,26 @@ {% if topic["quote_text"] %}
      Conclusion -

      {{ topic["quote_text"] }}

      +

      {{ topic["quote_text"] }}

      {% endif %}
{% endfor %} {% if not (summary_topics|default([])) %} -

{{ summary_fallback_text }}

+

{{ summary_fallback_text }}

{% endif %}
{% if summary_resource_hub|default([]) %} -
+
# Shared Resources
{% for item in summary_resource_hub %}
{{ item.icon }} - {{ item.title }} + {{ item.title }}
@@ -155,10 +155,10 @@
{% endif %} -
+
# Marketplace -
+
{% for line in summary_marketplace|default([]) %}

{{ line }}

{% endfor %} @@ -169,7 +169,7 @@
# Unresolved Pool -
+
{% for line in summary_unresolved_pool|default([]) %}

{{ line }}

{% endfor %} @@ -180,19 +180,19 @@
-
+
# Core Knowledge Points {% for line in summary_core_points|default([]) %} -

{{ line }}

+

{{ line }}

{% endfor %} {% if not (summary_core_points|default([])) %} -

暂无核心知识点

+

暂无核心知识点

{% endif %}
-
+
Top Contributors
{% for name in summary_top_contributors|default([]) %} @@ -207,7 +207,7 @@
-
+
Engine: Playwright · Tokens: {{ summary_metrics.token_total }} · Latency: {{ summary_metrics.latency_text }}