Skip to content

Commit

Permalink
💄 Update abyss challenge data width
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Dec 19, 2024
1 parent ee391d5 commit 0b52d7d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/starrail/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ async def get_rendered_pic( # skipcq: PY-R1000 #
return await self.template_service.render(
"starrail/abyss/overview.html",
render_data,
viewport={"width": 2745, "height": 4000},
viewport={"width": 1893, "height": 4000},
query_selector=".container",
)

Expand Down
2 changes: 1 addition & 1 deletion plugins/starrail/challenge_boss.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async def get_rendered_pic(
return await self.template_service.render(
"starrail/abyss/overview.html",
render_data,
viewport={"width": 2745, "height": 4000},
viewport={"width": 1893, "height": 4000},
query_selector=".container",
)

Expand Down
2 changes: 1 addition & 1 deletion plugins/starrail/challenge_story.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ async def get_rendered_pic(
return await self.template_service.render(
"starrail/abyss/overview.html",
render_data,
viewport={"width": 2745, "height": 4000},
viewport={"width": 1893, "height": 4000},
query_selector=".container",
)

Expand Down
4 changes: 2 additions & 2 deletions resources/starrail/abyss/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
</div>
</div>
{% for data in floors %}
{% if loop.index % 4 == 1 %}
{% if loop.index % 2 == 1 %}
<div class="floors_row">
{% endif %}
{% include floor_page %}
{% if loop.index % 4 == 0 or loop.index == loop.length %}
{% if loop.index % 2 == 0 or loop.index == loop.length %}
</div>
{% endif %}
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion resources/starrail/abyss/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ body {
/* 概览 */

.overview {
padding: 20px 540px;
padding: 20px 240px;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
Expand Down

0 comments on commit 0b52d7d

Please sign in to comment.