Skip to content

Commit

Permalink
fix css issue with buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
mysurvive committed Mar 15, 2024
1 parent 9d151f2 commit b572088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/so-inspired.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function renderNewInspoSheet(_sheet, html) {
counterArea = $(html).find(".card .stats").children().last();
newInspirationArea = `<div class="meter-group"><div class="label roboto-condensed-upper"><span>Inspiration</span></div><div class="meter hit-dice progress" role="meter" aria-valuemin="0" aria-valuenow="${currentInspiration}" aria-valuemax="${maxInspiration}" style="--bar-percentage: ${
(currentInspiration / maxInspiration) * 100
}%"><div class="label"><span class="value">${currentInspiration}</span><span class="separator">/</span><span class="max">${maxInspiration}</span></div><div class="inspo-buttons"><button type="button" class="add-inspiration-btn"><i class="fa-solid fa-plus" style="color: #000000;"></i></button><button type="button" class="remove-inspiration-btn"><i class="fa-solid fa-minus" style="color: #000000;"></i></button></div></div></div>`;
}%"><div class="label"><span class="value">${currentInspiration}</span><span class="separator"> / </span><span class="max">${maxInspiration}</span></div><div class="inspo-buttons"><button type="button" class="add-inspiration-btn"><i class="fa-solid fa-plus" style="color: #000000;"></i></button><button type="button" class="remove-inspiration-btn"><i class="fa-solid fa-minus" style="color: #000000;"></i></button></div></div></div>`;
counterArea.after(newInspirationArea);
} else {
counterArea = $(html).find(".counters");
Expand Down
1 change: 1 addition & 0 deletions src/styles/so-inspired.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
}

.dnd5e2.sheet.actor {
justify-content: space-between;
.inspo-buttons {
display: flex;
position: relative;
Expand Down

0 comments on commit b572088

Please sign in to comment.