diff --git a/client/game.css b/client/game.css index d7eb03e4..edbcfdfa 100644 --- a/client/game.css +++ b/client/game.css @@ -46,10 +46,10 @@ .opponent .game-cryp { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: - "stats" - "effects" - "avatar" - "skills"; + ". stats" + ". effects" + "target avatar" + ". skills"; } .game-cryp { @@ -57,12 +57,14 @@ justify-items: center; - grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr); + /*grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr);*/ + /*grid-template-columns: min-content minmax(0, 1fr);*/ + grid-template-columns: min-content 1fr 1fr; + grid-template-rows: 1fr 2fr 1fr; grid-template-areas: - "skills" - "avatar" - "effects" - "stats"; + ". skills skills" + "target avatar avatar" + "effects stats stats"; transition-property: all; transition-duration: 0.5s; @@ -70,10 +72,17 @@ transition-timing-function: ease; } -.game-cryp .avatar { +.game-cryp .targeting { + grid-area: target; + display: flex; + flex-flow: column; + justify-content: center; + align-items: flex-end; + width: 100%; +} + +.game-cryp .img { grid-area: avatar; - /*max-height: 50%;*/ - height: auto; } .game-cryp .stats { @@ -86,6 +95,7 @@ grid-area: skills; display: flex; flex-flow: column-reverse; + /*flex-flow: column;*/ } /*@media (max-width: 1000px) { diff --git a/client/src/components/game.component.jsx b/client/src/components/game.component.jsx index 8855c38a..4512a4e1 100644 --- a/client/src/components/game.component.jsx +++ b/client/src/components/game.component.jsx @@ -137,17 +137,15 @@ function GamePanel(props) {