ClassSelectorWindow styling

master
dudleycu 3 years ago
parent f45b173986
commit f2c0d9cb58
  1. 5
      src/TestPanel.js
  2. 2
      src/style.css

@ -105,7 +105,7 @@ function ClassSelector(p){
} }
function ClassSelectorWindow(p) { function ClassSelectorWindow(p) {
return <SelectorWindow title="Class Select" modalOpen={p.modalOpen} setModalOpen={p.setModalOpen} GetData={p.GetData} return <SelectorWindow title={(p.editClass)?"Select Sub Class":"Select Main Class"} modalOpen={p.modalOpen} setModalOpen={p.setModalOpen} GetData={p.GetData}
dataFunction={() => { dataFunction={() => {
var dat1 = p.GetData("class") var dat1 = p.GetData("class")
return Object.keys(dat1) return Object.keys(dat1)
@ -166,14 +166,13 @@ function SelectorWindow(p) {
{p.filter?<input className="itemBarForm" type="text" placeholder="Filter" value={filter} onChange={(f)=>{setFilter(f.currentTarget.value)}} />:<></>} {p.filter?<input className="itemBarForm" type="text" placeholder="Filter" value={filter} onChange={(f)=>{setFilter(f.currentTarget.value)}} />:<></>}
</div> </div>
</div> </div>
}<div className="tooltipAnchor"> }
<div className="modalItemListContainer customScrollbar"> <div className="modalItemListContainer customScrollbar">
<ul className="itemlist"> <ul className="itemlist">
{p.filter?itemList.filter((item)=>p.filterFunction(tabPage,item)).filter((item)=>p.searchFieldFunction(filter,item)).sort((a,b)=>p.sortOrderFunction(sortSelector,a,b)).map((item)=>p.displayFunction(item)):itemList.map((item)=>p.displayFunction(item))} {p.filter?itemList.filter((item)=>p.filterFunction(tabPage,item)).filter((item)=>p.searchFieldFunction(filter,item)).sort((a,b)=>p.sortOrderFunction(sortSelector,a,b)).map((item)=>p.displayFunction(item)):itemList.map((item)=>p.displayFunction(item))}
{p.children} {p.children}
</ul> </ul>
</div> </div>
</div>
</PopupWindow> </PopupWindow>
} }

@ -431,7 +431,6 @@ em {
} }
.itemlist { .itemlist {
margin: 0 10px; margin: 0 10px;
} }
.itemlist li { .itemlist li {
background-color: rgba(128,128,128,0.33); background-color: rgba(128,128,128,0.33);
@ -441,7 +440,6 @@ em {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right top; background-position: right top;
background-origin: content-box; background-origin: content-box;
} }
.aug:before { .aug:before {
content:url("./icons/UINGSItemSpecialAbility.png"); content:url("./icons/UINGSItemSpecialAbility.png");

Loading…
Cancel
Save