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 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="itemDetailsProperties">
<div className="itemDetailsPropertiesWrapper"> <div className="itemDetailsPropertiesWrapper">
@ -535,7 +537,12 @@ useEffect(()=>{
<div style={{gridArea:"conditionsDisplay"}}>Lv.15 (Current Lv.20)</div> <div style={{gridArea:"conditionsDisplay"}}>Lv.15 (Current Lv.20)</div>
</div></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"> <div className="itemDetailsAugment">
<span className="aug">Augment</span> <span className="aug">Augment</span>
<div className="itemDetailsAugmentWrapper"> <div className="itemDetailsAugmentWrapper">
@ -548,7 +555,7 @@ useEffect(()=>{
</div> </div>
</div> </div>
</div> </div>
</div>
</> </>

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

Loading…
Cancel
Save