💄 Update abyss challenge data width

This commit is contained in:
xtaodada 2024-12-19 13:31:00 +08:00
parent 585651f7f9
commit 9d769c8d10
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 5 additions and 5 deletions

View File

@ -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",
)

View File

@ -43,11 +43,11 @@
</div>
</div>
{% for data in floors %}
{% if loop.index % 4 == 1 %}
{% if loop.index % 2 == 1 %}
<div class="floors_row">
{% 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 %}
</div>
{% endif %}
{% endfor %}

View File

@ -44,7 +44,7 @@ body {
/* 概览 */
.overview {
padding: 20px 540px;
padding: 20px 240px;
background-size: cover;
background-repeat: no-repeat;
background-position: center;