item details grid is more intuitive now #wow

master
Dudley C 3 years ago
parent 64244ac3c5
commit 0d59f26bea
  1. 13
      src/TestPanel.js
  2. 34
      src/style.css

@ -518,7 +518,9 @@ useEffect(()=>{
<>
<div className="itemDetailsGrid">
<div onClick={()=>{setWeaponSelectWindowOpen(true)}} className={"itemDetailsIcon"+rarityCheck(selectedWeapon[WEAPON_WEAPON])}><div><p>Edit <span>&#9998;</span></p></div><img alt="" src={DisplayIcon(selectedWeapon[WEAPON_EXISTENCE_DATA]?.icon)} /></div>
<div className={"itemDetailsIcon editOverlayWrapper"+rarityCheck(selectedWeapon[WEAPON_WEAPON])} onClick={()=>{setWeaponSelectWindowOpen(true)}}>
<div className="editOverlay"><p>Edit <span>&#9998;</span></p></div>
<img alt="" src={DisplayIcon(selectedWeapon[WEAPON_EXISTENCE_DATA]?.icon)} /></div>
<div className="itemDetailsProperties">
<div className="itemDetailsPropertiesWrapper">
@ -535,7 +537,12 @@ useEffect(()=>{
<div style={{gridArea:"conditionsDisplay"}}>Lv.15 (Current Lv.20)</div>
</div></div>
<div className="itemAbility"><div className="itemPotential"><span className="pot">Soulspring Unit Lv.3</span></div><div className="itemFixa"><span className="fixa">Fixa Attack Lv.3</span></div></div>
</div>
<div className="editOverlayWrapper">
<div className="editOverlay"><p>Edit <span>&#9998;</span></p></div>
<div className="itemDetailsGridBottom">
<div className="itemPotential"><span className="pot">Soulspring Unit Lv.3</span></div>
<div className="itemFixa"><span className="fixa">Fixa Attack Lv.3</span></div>
<div className="itemDetailsAugment">
<span className="aug">Augment</span>
<div className="itemDetailsAugmentWrapper">
@ -548,7 +555,7 @@ useEffect(()=>{
</div>
</div>
</div>
</div>
</>

@ -1478,22 +1478,30 @@ p.adminNav hr {
.itemDetailsGrid {
display: grid;
grid-template-areas:
"icon properties"
"ability ability"
"augment augment";
"icon properties";
grid-template-columns: 128px minmax(0,1fr);
margin: 10px 10px 0 10px;
margin: 10px;
}
.itemDetailsGridBottom {
display: grid;
grid-template-areas:
"ability fixa"
"augment augment";
grid-template-columns: repeat(2,minmax(0,1fr));
margin: 10px;
}
.itemDetailsIcon {
grid-area: icon;
align-self: flex-start;
}
.editOverlayWrapper {
position: relative;
}
.itemDetailsIcon:hover {
.editOverlayWrapper:hover {
cursor: pointer;
outline: 2px solid #30cdef;
}
.itemDetailsIcon > div {
.editOverlay {
display: none;
position: absolute;
height: 100%;
@ -1504,14 +1512,14 @@ p.adminNav hr {
text-align: center;
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66));
}
.itemDetailsIcon > div > p {
.editOverlay > p {
margin: 0;
padding: 0;
}
.itemDetailsIcon:hover > div {
.editOverlayWrapper:hover .editOverlay {
display: flex;
}
.itemDetailsIcon > div > p > span {
.editOverlay > p > span {
font-family: "Segoe UI Symbol";
}
.itemDetailsProperties {
@ -1563,16 +1571,12 @@ p.adminNav hr {
margin-right: 10px;
font-weight: 900;
}
.itemAbility {
grid-area: ability;
display: grid;
grid-template-columns: minmax(0,1fr) minmax(0,1fr);
margin: 20px 0 0 0;
}
.itemPotential {
grid-area: ability;
text-align: left;
}
.itemFixa {
grid-area: fixa;
text-align: left;
}
.itemDetailsIcon img {

Loading…
Cancel
Save