查询图支持处理没有签名的情况

This commit is contained in:
2024-05-03 23:12:06 +08:00
parent c92bc3aaad
commit be1b07d5dc
3 changed files with 7 additions and 1 deletions

View File

@@ -92,6 +92,7 @@
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 25px;
gap: 10px;

View File

@@ -14,9 +14,14 @@
<div class="info-box">
<div class="flex-gap"></div>
<div class="box-shadow box-rounded-corners user-info-box">
<div class="flex-gap"></div>
<img class="user-avatar" src="{{user_avatar}}" />
<div class="flex-gap"></div>
<div class="user-name">{{user_name}}</div>
<div class="flex-gap"></div>
{% if user_sign is not none %}
<div class="user-sign">“{{user_sign}}”</div>
{% endif %}
</div>
<div class="flex-gap"></div>
<div class="box-shadow box-rounded-corners game-info-box">

View File

@@ -34,7 +34,7 @@ async def render(
*,
user_avatar: str,
user_name: str,
user_sign: str,
user_sign: str | None,
game_type: Literal['TETR.IO'],
ranking: str | float,
rd: str | float,