From 9e3beb9fbc424d3368c64586c3a00b3658a4adc9 Mon Sep 17 00:00:00 2001 From: dudleycu Date: Mon, 23 Aug 2021 19:17:25 +0900 Subject: [PATCH] rearranging UI --- src/TestPanel.js | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ src/style.css | 14 +++++++----- 2 files changed, 67 insertions(+), 6 deletions(-) diff --git a/src/TestPanel.js b/src/TestPanel.js index 3bf44c7..8f89ea7 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -398,6 +398,65 @@ useEffect(()=>{ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Battle Power{p.bp}
 
HP{p.hp}
 
PP{p.pp}
 
Attack{p.statDisplayAtk}
 
Defense{p.def}
 
Weapon Up +{(p.weaponUp1*100).toFixed(1)}%
+  +{(p.weaponUp3*100).toFixed(1)}%
 +{(p.weaponUp2*100).toFixed(1)}% 
Ailment Resist. + {(p.burnResist*100).toFixed(1)}%
+ {(p.shockResist*100).toFixed(1)}%
+ {(p.panicResist*100).toFixed(1)}%
+ {(p.stunResist*100).toFixed(1)}%
+
+ {(p.freezeResist*100).toFixed(1)}%
+ {(p.blindResist*100).toFixed(1)}%
+ {(p.poisonResist*100).toFixed(1)}%
+
 
Damage Resist.{(p.damageResist*100).toFixed(1)}%  
+
diff --git a/src/style.css b/src/style.css index c73e8f7..34cc356 100644 --- a/src/style.css +++ b/src/style.css @@ -131,7 +131,6 @@ border-bottom: 1px solid rgba(128,128,128,0.5); border-spacing: 0; color: white; margin: 10px auto; - width: 95%; } .box tr { /* background-image: url("tr_bg.png");*/ @@ -163,19 +162,21 @@ border-bottom: 1px solid rgba(128,128,128,0.5); height: 8px; } .statsInfo { + background-color:rgba(0,0,0,0.33); + margin: 0 10px; + padding: 5px; +} +.statsInfo > table { table-layout:fixed; width: 100%; line-height: 23px; } -.statsInfo td:nth-child(2) { +.statsInfo > table td:nth-child(2) { text-align: right; } -.statsInfo td:nth-child(3) { +.statsInfo > table td:nth-child(3) { width: 50%; } -/*.statsInfo span { - -}*/ .boxTitleBar { background-color: rgba(124, 144, 148, 0.66); color: white; @@ -228,6 +229,7 @@ border-bottom: 1px solid rgba(128,128,128,0.5); table-layout:fixed; width: 100%; line-height: 23px; + margin: 0 5px; } .basicInfo td:nth-child(3) { width: 33%;