mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
fix(avatar_list): 🐛 fix layout of avatar-list
This commit is contained in:
parent
f88130a5af
commit
880b4aed2c
@ -33,10 +33,8 @@
|
||||
alt="Avatar"
|
||||
/>
|
||||
<div class="flex-1">
|
||||
|
||||
<div class="nickname text-4xl italic mb-2 px-2 text-light">
|
||||
{{ nickname }}
|
||||
{% if level > 0 %}
|
||||
{{ nickname }} {% if level > 0 %}
|
||||
<span class="text-lg">lv.{{ level }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
@ -49,7 +47,9 @@
|
||||
|
||||
<div class="content grid grid-cols-2 gap-4 rounded-xl">
|
||||
{% for avatar_data in avatar_datas %}
|
||||
<div class="flex out-shadow bg-card p-3 rounded-2xl items-center gap-x-3">
|
||||
<div
|
||||
class="flex out-shadow bg-card p-2.5 rounded-2xl items-center gap-x-2.5"
|
||||
>
|
||||
<!-- <td class="text-right {{ row_bg }}">
|
||||
{{ start_id + loop.index }}
|
||||
</td> -->
|
||||
@ -74,21 +74,21 @@
|
||||
|
||||
<!-- info -->
|
||||
<div
|
||||
class="info in-shadow flex-1 relative flex flex-row justify-between bg-black text-muted px-3 py-3 rounded-xl gap-x-3"
|
||||
class="info in-shadow flex-1 relative flex flex-row justify-between bg-black text-muted px-3 py-3 rounded-xl gap-x-1"
|
||||
>
|
||||
<div class="basic flex flex-col items-start gap-y-2 min-w-[3.7rem]">
|
||||
<span class="name text-xl text-light">{{ avatar_data.name }}</span>
|
||||
|
||||
<div>
|
||||
<small
|
||||
class="level text-light font-sans font-bold bg-[#686868] px-2 py-1 rounded"
|
||||
class="level text-light font-sans font-bold bg-[#686868] px-1.5 py-1 rounded"
|
||||
>Lv.{{ avatar_data.level }}</small
|
||||
>
|
||||
<!-- constellation -->
|
||||
{% set constellation = avatar_data.eidolon %} {% set class_str =
|
||||
'' %} {% if constellation != 0 %} {% set color = ['green', 'cyan',
|
||||
'blue', 'purple', 'pink', 'red'][constellation - 1] %} {% set
|
||||
class_str = "color " ~ color %} {% endif %}
|
||||
class_str = "color-" ~ color %} {% endif %}
|
||||
<span class="number {{ class_str }} mx-1"
|
||||
>{{ constellation }}</span
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user