Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicKevinFerm committed Jan 30, 2024
1 parent fb4dfd7 commit 0aaaad2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/core/components/individual_sim_ui/bulk_tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,17 @@ class BulkSimResultRenderer {
parent.bodyElement.appendChild(itemsContainer);
parent.bodyElement.appendChild(dpsDivParent);

const talentText = document.createElement('p');
talentText.classList.add('talent-loadout-text')
if (result.talentLoadout && typeof result.talentLoadout === 'object') {
const talentText = document.createElement('p');
if (typeof result.talentLoadout.name === 'string') {
talentText.textContent = 'Talent loadout used: ' + result.talentLoadout.name;
}
parent.bodyElement.appendChild(talentText);
} else {
talentText.textContent = 'Current talents'
}

dpsDiv.appendChild(talentText);
if (result.itemsAdded && result.itemsAdded.length > 0) {
const equipBtn = document.createElement('button');
equipBtn.textContent = 'Equip';
Expand Down
4 changes: 4 additions & 0 deletions ui/scss/core/components/_bulk.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@
}
}

.talent-loadout-text {
font-size: smaller;
}

.talents-picker-container {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 0aaaad2

Please sign in to comment.