From 0f8fae24fd22b81bf02dee049cf5cb89b7df6047 Mon Sep 17 00:00:00 2001 From: qsc Date: Sat, 21 Feb 2026 19:10:17 +0800 Subject: [PATCH] ok --- templates/test.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/test.html b/templates/test.html index e69bda7..73536d3 100644 --- a/templates/test.html +++ b/templates/test.html @@ -45,8 +45,9 @@ } .card img { - width: 48px; - height: 48px; + width: 100%; + max-width: 180px; + height: auto; /* 自动保持比例 */ object-fit: contain; margin-bottom: 6px; } @@ -79,7 +80,11 @@
{% for item in ptqy %}
- {{ item.event }} + {% if icons.serendipity.get(item.event) %} + {{ item.event }} + {% else %} +
{{ item.event }}
+ {% endif %}
{{ item.time }}
{% endfor %}