From 9d769c8d106aacaf2981d712164295e4f59900c3 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 19 Dec 2024 13:31:00 +0800 Subject: [PATCH] :lipstick: Update abyss challenge data width --- plugins/zzz/challenge.py | 4 ++-- resources/zzz/abyss/overview.html | 4 ++-- resources/zzz/abyss/style.css | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/zzz/challenge.py b/plugins/zzz/challenge.py index 8ead314..e651a6b 100644 --- a/plugins/zzz/challenge.py +++ b/plugins/zzz/challenge.py @@ -178,7 +178,7 @@ class ChallengePlugin(Plugin): for ch in floor_data.node_1.avatars + floor_data.node_2.avatars } buddy_icons = { - bu.id: self.assets_service.buddy.square(bu.id).as_uri() + bu.id: self.assets_service.buddy.icon(bu.id).as_uri() for bu in [floor_data.node_1.buddy, floor_data.node_2.buddy] if bu } @@ -266,7 +266,7 @@ class ChallengePlugin(Plugin): return await self.template_service.render( "zzz/abyss/overview.html", render_data, - viewport={"width": 2745, "height": 4000}, + viewport={"width": 1893, "height": 4000}, query_selector=".container", ) diff --git a/resources/zzz/abyss/overview.html b/resources/zzz/abyss/overview.html index 56dedf3..2138675 100644 --- a/resources/zzz/abyss/overview.html +++ b/resources/zzz/abyss/overview.html @@ -43,11 +43,11 @@ {% for data in floors %} - {% if loop.index % 4 == 1 %} + {% if loop.index % 2 == 1 %}
{% endif %} {% include "zzz/abyss/floor.jinja2" %} - {% if loop.index % 4 == 0 or loop.index == loop.length %} + {% if loop.index % 2 == 0 or loop.index == loop.length %}
{% endif %} {% endfor %} diff --git a/resources/zzz/abyss/style.css b/resources/zzz/abyss/style.css index 12d2116..4fb552e 100644 --- a/resources/zzz/abyss/style.css +++ b/resources/zzz/abyss/style.css @@ -44,7 +44,7 @@ body { /* 概览 */ .overview { - padding: 20px 540px; + padding: 20px 240px; background-size: cover; background-repeat: no-repeat; background-position: center;