fixed wpn selector window oops (i broke it)

master
dudleycu 3 years ago
parent 53325c2f93
commit 45889309fa
  1. 2
      src/TestPanel.js
  2. 7
      src/style.css

@ -756,7 +756,7 @@ useEffect(()=>{
}
}}
displayFunction={(item)=>{
return<div className={"itemWrapper r"+item[WEAPON_WEAPON].rarity}><div className="itemImgWrapper"><img alt="" src={DisplayIcon(item[WEAPON_EXISTENCE_DATA]?.icon)} /></div><div className="itemNameWrapper rifle">{GetSpecialWeaponName(item)}</div><div className="itemRarityWrapper">&nbsp;</div><div className="itemPropertiesWrapper"><span className="atk">{item[WEAPON_WEAPON].atk}</span>
return<div className={"itemWrapper r"+item[WEAPON_WEAPON].rarity} onClick={()=>{setSelectedWeapon(item);setWeaponSelectWindowOpen(false)}}><div className="itemImgWrapper"><img alt="" src={DisplayIcon(item[WEAPON_EXISTENCE_DATA]?.icon)} /></div><div className="itemNameWrapper rifle">{GetSpecialWeaponName(item)}</div><div className="itemRarityWrapper">&nbsp;</div><div className="itemPropertiesWrapper"><span className="atk">{item[WEAPON_WEAPON].atk}</span>
<ExpandTooltip id={"mouseover-tooltip"+item[WEAPON_WEAPONTYPE].id+"_"+item[WEAPON_WEAPON].id+"_"+item[WEAPON_POTENTIAL].id+"_"+item[WEAPON_POTENTIAL_TOOLTIP].id} tooltip={<>{item[WEAPON_POTENTIAL_TOOLTIP].map((pot,i)=><React.Fragment key={i}>{(i!==0)&&<br/>}{pot.name}: {pot.description?pot.description.split("\\n").map((it,ii)=><React.Fragment key={ii}>{it}<br/> </React.Fragment>):<React.Fragment key={i}/>}</React.Fragment>)}</>}>

@ -260,6 +260,7 @@ border-bottom: 1px solid rgba(128,128,128,0.5);
border-bottom: 1px solid rgba(128,128,128,0.5);
line-height: 25px;
position: relative;
padding-bottom: -1px;
}
.basicInfo > div:nth-child(-n+4), .statsInfo > div:nth-child(-n+8) {
color: #97e2fc;
@ -1513,7 +1514,7 @@ p.adminNav hr {
}
.itemDetailsIcon {
grid-area: icon;
align-self: center;
align-self: flex-start;
}
.itemDetailsProperties {
margin: 0 0 0 10px;
@ -1528,11 +1529,11 @@ p.adminNav hr {
"element elementDisplay"
"conditions conditionsDisplay";
text-align: left;
gap: 10px 0;
gap: 5px 0;
}
.itemDetailsPropertiesWrapper > div {
border-bottom: 1px solid rgba(128,128,128,0.5);
padding-bottom: 2px;
padding-bottom: -1px;
}
.itemDetailsPropertiesWrapper > div:nth-child(odd) {
color: #97e2fc;

Loading…
Cancel
Save