mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 23:57:26 +08:00
[F] Fix user page css text overflow
This commit is contained in:
@@ -103,13 +103,11 @@ export interface MusicMeta {
|
|||||||
bpm: number,
|
bpm: number,
|
||||||
ver: number,
|
ver: number,
|
||||||
notes: {
|
notes: {
|
||||||
[key: number]: {
|
lv: number
|
||||||
lv: number
|
designer: string
|
||||||
designer: string
|
lv_id: number
|
||||||
lv_id: number
|
notes: number
|
||||||
notes: number
|
}[]
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AllMusic = { [key: string]: MusicMeta }
|
export type AllMusic = { [key: string]: MusicMeta }
|
||||||
|
|||||||
@@ -170,9 +170,7 @@
|
|||||||
<div class:alt={i % 2 === 0}>
|
<div class:alt={i % 2 === 0}>
|
||||||
<img src={`${DATA_HOST}/d/${game}/music/00${r.musicId.toString().padStart(6, '0').substring(2)}.png`} alt="" on:error={coverNotFound} />
|
<img src={`${DATA_HOST}/d/${game}/music/00${r.musicId.toString().padStart(6, '0').substring(2)}.png`} alt="" on:error={coverNotFound} />
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div>
|
<div>{r.name}</div>
|
||||||
<span class="name">{r.name}</span>
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<span class={`lv level-${r.level}`}>{r.notes ? r.notes[r.level]?.lv.toFixed(1) : ""}</span>
|
<span class={`lv level-${r.level}`}>{r.notes ? r.notes[r.level]?.lv.toFixed(1) : ""}</span>
|
||||||
<span class={"rank-" + ("" + getMult(r.achievement, game)[2])[0]}>
|
<span class={"rank-" + ("" + getMult(r.achievement, game)[2])[0]}>
|
||||||
@@ -218,7 +216,7 @@ $gap: 20px
|
|||||||
display: flex
|
display: flex
|
||||||
flex-direction: row
|
flex-direction: row
|
||||||
gap: 10px
|
gap: 10px
|
||||||
top: 0.5rem
|
top: 4px
|
||||||
right: 0
|
right: 0
|
||||||
|
|
||||||
.pfp
|
.pfp
|
||||||
@@ -349,18 +347,23 @@ $gap: 20px
|
|||||||
object-fit: cover
|
object-fit: cover
|
||||||
|
|
||||||
// Song info and score
|
// Song info and score
|
||||||
> div
|
> div.info
|
||||||
flex: 1
|
flex: 1
|
||||||
display: flex
|
display: flex
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
|
overflow: hidden
|
||||||
|
|
||||||
// Limit song name to one line
|
// Limit song name to one line
|
||||||
overflow: hidden
|
> div:first-child
|
||||||
.name
|
flex: 1
|
||||||
|
min-width: 0
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
overflow-wrap: anywhere
|
|
||||||
white-space: nowrap
|
|
||||||
text-overflow: ellipsis
|
text-overflow: ellipsis
|
||||||
|
white-space: nowrap
|
||||||
|
|
||||||
|
// Make song score and rank not wrap
|
||||||
|
> div:last-child
|
||||||
|
white-space: nowrap
|
||||||
|
|
||||||
@media (max-width: $w-mobile)
|
@media (max-width: $w-mobile)
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
|
|||||||
Reference in New Issue
Block a user