This commit is contained in:
2026-07-23 13:21:06 +08:00
parent e6bd184ad8
commit 7473a60a96
+13 -9
View File
@@ -111,6 +111,11 @@
font-weight: 800; font-weight: 800;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
.avatar-col {
width: 70px;
text-align: center;
}
</style> </style>
</head> </head>
<body> <body>
@@ -123,10 +128,11 @@
<thead> <thead>
<tr> <tr>
<th>排名</th> <th>排名</th>
<th>角色</th> <th>推栏用户</th>
<th>职业</th> <th>职业</th>
<th>角色</th>
<th>服务器</th> <th>服务器</th>
<th>资历</th> <th>资历</th>
</tr> </tr>
</thead> </thead>
@@ -134,13 +140,10 @@
{% for item in items %} {% for item in items %}
<tr> <tr>
<td class="rank-col">{{ loop.index }}</td> <td class="rank-col">{{ loop.index }}</td>
<td> <td class="avatar-col">
<div class="role"> {% if item.avatarUrl %}
{% if item.avatarUrl %} <img class="avatar" src="{{ item.avatarUrl }}" alt="{{ item.roleName }}">
<img class="avatar" src="{{ item.avatarUrl }}" alt="{{ item.roleName }}"> {% endif %}
{% endif %}
<span>{{ item.roleName }}</span>
</div>
</td> </td>
<td> <td>
<div class="force"> <div class="force">
@@ -151,6 +154,7 @@
<span>{{ item.forceName }}</span> <span>{{ item.forceName }}</span>
</div> </div>
</td> </td>
<td class="server-col">{{ item.roleName }}</td>
<td class="server-col">{{ item.serverName }}</td> <td class="server-col">{{ item.serverName }}</td>
<td class="score-col">{{ item.seniority }}</td> <td class="score-col">{{ item.seniority }}</td>
</tr> </tr>