Skip to content

Commit

Permalink
Small tweak to remaining points (#4220)
Browse files Browse the repository at this point in the history
* add points remaining and copy to talents

* move points remaining inside carousel
  • Loading branch information
kayla-glick authored Feb 18, 2024
1 parent 802cd64 commit 2a47747
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/core/talents/talents_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ export class TalentsPicker<TalentsProto> extends Input<Player<Spec>, string> {

const actionsContainerRef = ref<HTMLDivElement>();
this.rootElem.appendChild(
<>
<div id="talents-carousel" className="carousel slide">
<div className="talents-picker-header">
<div>
<label>Points Remaining:</label>
{PointsRemainingElem()}
</div>
<div className="talents-picker-actions" ref={actionsContainerRef}></div>
</div>
<div className="carousel-inner">
</div>
<div id="talents-carousel" className="carousel slide">
<div className="carousel-inner">
</div>
Expand All @@ -76,7 +78,7 @@ export class TalentsPicker<TalentsProto> extends Input<Player<Spec>, string> {
<span className="visually-hidden">Next</span>
</button>
</div>
</>
</div>
);

new CopyButton(actionsContainerRef.value!, {
Expand Down

0 comments on commit 2a47747

Please sign in to comment.