Skip to content

Commit

Permalink
[S] Mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Feb 12, 2024
1 parent 06c0a36 commit bf3c123
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion AquaNet/src/pages/UserHome.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
<div class={clazz({alt: i % 2 === 0})}>
<img src={`${data_host}/maimai/assetbundle/jacket_s/00${r.musicId.toString().padStart(6, '0').substring(2)}.png`} alt="">
<div class="info">
<div>{r.name}</div>
<div class="name">{r.name}</div>
<div>
<span class={"rank-" + ("" + getMult(r.achievement)[2])[0]}>
<span class="rank-text">{("" + getMult(r.achievement)[2]).replace("p", "+")}</span>
Expand Down Expand Up @@ -310,6 +310,12 @@ $gap: 20px
gap: $gap
padding-right: 16px
// Limit song name to one line
.name
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
img
width: 50px
height: 50px
Expand All @@ -322,6 +328,13 @@ $gap: 20px
display: flex
justify-content: space-between
@media (max-width: $w-mobile)
flex-direction: column
gap: 0
span
text-align: left
.rank-S
// Gold green gradient on text
background: linear-gradient(90deg, #ffee94, #ffb798, #ffa3e5, #ebff94)
Expand Down

0 comments on commit bf3c123

Please sign in to comment.