💄 Update abyss challenge data width

This commit is contained in:
xtaodada 2024-12-19 13:21:48 +08:00
parent 3a6e0f7fd5
commit dfa2387786
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 4 additions and 4 deletions

View File

@ -244,7 +244,7 @@ class AbyssPlugin(Plugin):
return await self.template_service.render(
"genshin/abyss/overview.jinja2",
render_data,
viewport={"width": 2745, "height": 4000},
viewport={"width": 1893, "height": 4000},
query_selector=".container",
)

View File

@ -97,13 +97,13 @@
</div>
</div>
{% for floor in data.floors %}
{% if loop.index % 4 == 1 %}
{% if loop.index % 2 == 1 %}
<div class="floors_row">
{% endif %}
{% set floor_num = floor.floor_num %}
{% set total_stars = floor.total_stars %}
{% include "genshin/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

@ -40,7 +40,7 @@ body {
.overview {
height: 540px;
padding: 20px 540px;
padding: 20px 240px;
background-size: cover;
background-repeat: no-repeat;
background-position: center;