From 0d59f26bea2440ad25269c5f0c7aa4782719bef7 Mon Sep 17 00:00:00 2001 From: Dudley C Date: Wed, 8 Sep 2021 18:39:16 +0900 Subject: [PATCH] item details grid is more intuitive now #wow --- src/TestPanel.js | 13 ++++++++++--- src/style.css | 34 +++++++++++++++++++--------------- 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/src/TestPanel.js b/src/TestPanel.js index 8d087e0..d04fe0a 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -518,7 +518,9 @@ useEffect(()=>{ <>
-
{setWeaponSelectWindowOpen(true)}} className={"itemDetailsIcon"+rarityCheck(selectedWeapon[WEAPON_WEAPON])}>

Edit

+
{setWeaponSelectWindowOpen(true)}}> +

Edit

+
@@ -535,7 +537,12 @@ useEffect(()=>{
Lv.15 (Current Lv.20)
-
Soulspring Unit Lv.3
Fixa Attack Lv.3
+
+
+

Edit

+
+
Soulspring Unit Lv.3
+
Fixa Attack Lv.3
Augment
@@ -548,7 +555,7 @@ useEffect(()=>{
- +
diff --git a/src/style.css b/src/style.css index 788f85b..82f88de 100644 --- a/src/style.css +++ b/src/style.css @@ -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 {