ticket #134 attempt 1
Some checks failed
DevPlace CI / test (pull_request) Failing after 54m2s
Some checks failed
DevPlace CI / test (pull_request) Failing after 54m2s
This commit is contained in:
parent
ad1736ebf1
commit
1f320b45ec
@ -241,16 +241,24 @@
|
|||||||
min-width: 2.2em;
|
min-width: 2.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-lb-name {
|
.game-lb-name-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
}
|
||||||
white-space: nowrap;
|
|
||||||
|
.game-lb-name {
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-lb-name:hover {
|
.game-lb-name:hover {
|
||||||
@ -264,10 +272,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.game-lb-title {
|
.game-lb-title {
|
||||||
flex-shrink: 0;
|
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
font-size: 0.75rem;
|
font-size: 0.7rem;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
display: block;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-lb-score {
|
.game-lb-score {
|
||||||
|
|||||||
@ -370,7 +370,7 @@ export class GameFarm {
|
|||||||
.map((entry) => {
|
.map((entry) => {
|
||||||
const title = entry.title ? `<span class="game-lb-title">${entry.title}</span>` : "";
|
const title = entry.title ? `<span class="game-lb-title">${entry.title}</span>` : "";
|
||||||
const value = this._leaderboardValue(board, entry);
|
const value = this._leaderboardValue(board, entry);
|
||||||
return `<li class="game-lb-row${entry.username === this.username ? " game-lb-self" : ""}"><span class="game-lb-rank">#${entry.rank}</span><a class="game-lb-name" href="/game/farm/${entry.username}">${entry.username}</a>${title}<span class="game-lb-level">Lv ${entry.level}</span><span class="game-lb-score">${value}</span></li>`;
|
return `<li class="game-lb-row${entry.username === this.username ? " game-lb-self" : ""}"><span class="game-lb-rank">#${entry.rank}</span><div class="game-lb-name-group"><a class="game-lb-name" href="/game/farm/${entry.username}">${entry.username}</a>${title}</div><span class="game-lb-level">Lv ${entry.level}</span><span class="game-lb-score">${value}</span></li>`;
|
||||||
})
|
})
|
||||||
.join("");
|
.join("");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user