Compare commits
2 Commits
4b8e02b698
...
9eb1c1523e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9eb1c1523e | ||
|
|
c399afa26d |
@@ -706,8 +706,7 @@ const NatusWheel = (() => {
|
||||
|
||||
if (CLASSIC_ELEMENTS.has(item.key)) {
|
||||
const contribs = elData.contributors || [];
|
||||
bodyHtml = `<div class="tt-el-body-line">${vecImg} +${count} (${pct}%)</div>`;
|
||||
bodyHtml += `<div class="tt-el-formation-header"><span class="tt-el-formation-label">Planets</span> +${contribs.length}</div>`;
|
||||
bodyHtml = `<div class="tt-el-formation-header"><span class="tt-el-formation-label">Planets</span> +${contribs.length}</div>`;
|
||||
if (contribs.length) {
|
||||
bodyHtml += '<div class="tt-el-contribs">';
|
||||
contribs.forEach(c => {
|
||||
@@ -720,7 +719,6 @@ const NatusWheel = (() => {
|
||||
|
||||
} else if (item.key === 'Time') {
|
||||
const stellia = elData.stellia || [];
|
||||
bodyHtml = `<div class="tt-el-body-line">${vecImg} +${count} (${pct}%)</div>`;
|
||||
if (stellia.length) {
|
||||
const isTie = stellia.length > 1;
|
||||
bodyHtml += '<div class="tt-el-contribs">';
|
||||
@@ -745,7 +743,6 @@ const NatusWheel = (() => {
|
||||
|
||||
} else if (item.key === 'Space') {
|
||||
const parades = elData.parades || [];
|
||||
bodyHtml = `<div class="tt-el-body-line">${vecImg} +${count} (${pct}%)</div>`;
|
||||
if (parades.length) {
|
||||
bodyHtml += '<div class="tt-el-contribs">';
|
||||
parades.forEach(pd => {
|
||||
@@ -778,9 +775,13 @@ const NatusWheel = (() => {
|
||||
if (_ttBody) {
|
||||
_ttBody.innerHTML =
|
||||
`<div class="tt-el-header">` +
|
||||
squareImg +
|
||||
`<div class="tt-el-badge-col">` +
|
||||
squareImg +
|
||||
`<div class="tt-el-score">+${count} (${pct}%)</div>` +
|
||||
`</div>` +
|
||||
`<span class="tt-title tt-title--el-${elKey}">${info.name}</span>` +
|
||||
`</div>` +
|
||||
`<span class="tt-element-type">${item.key}-Capacitor</span>` +
|
||||
bodyHtml;
|
||||
}
|
||||
_positionTooltipAtItem('elements', idx);
|
||||
|
||||
@@ -14,11 +14,14 @@ from apps.lyric.models import User
|
||||
|
||||
|
||||
def _equip_earthman_deck(user):
|
||||
"""Equip the Earthman DeckVariant so the role-select no-deck guard passes."""
|
||||
deck = DeckVariant.objects.filter(name__icontains="Earthman").first()
|
||||
if deck:
|
||||
user.equipped_deck = deck
|
||||
user.save(update_fields=["equipped_deck"])
|
||||
# get_or_create: TransactionTestCase.flush() wipes migration-seeded DeckVariants
|
||||
# between tests, so subsequent tests in the same run can't find it via filter().
|
||||
deck, _ = DeckVariant.objects.get_or_create(
|
||||
slug="earthman",
|
||||
defaults={"name": "Earthman", "card_count": 106, "is_default": True},
|
||||
)
|
||||
user.equipped_deck = deck
|
||||
user.save(update_fields=["equipped_deck"])
|
||||
|
||||
|
||||
def _fill_room_via_orm(room, emails):
|
||||
|
||||
@@ -619,6 +619,7 @@ body[class*="-light"] {
|
||||
opacity: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tt-element-type,
|
||||
.tt-house-type,
|
||||
.tt-sign-type {
|
||||
display: block;
|
||||
@@ -710,12 +711,24 @@ body[class*="-light"] {
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
|
||||
.tt-el-square {
|
||||
.tt-el-badge-col {
|
||||
float: right;
|
||||
display: block;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.tt-el-square {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tt-el-score {
|
||||
font-size: 0.7rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tt-el-vec {
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
|
||||
Reference in New Issue
Block a user