diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-06-02 23:34:43 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-06-02 23:34:43 +0200 |
commit | 0d236883d6034bbeff270149de073bf8468a2bc7 (patch) | |
tree | d5e56900069446528c25e5ec18d3426cfc4b363d /sw-ui/src/main | |
parent | Actually enable STOMP heart beats (diff) | |
download | seven-wonders-0d236883d6034bbeff270149de073bf8468a2bc7.tar.gz seven-wonders-0d236883d6034bbeff270149de073bf8468a2bc7.tar.bz2 seven-wonders-0d236883d6034bbeff270149de073bf8468a2bc7.zip |
Cleanup
Diffstat (limited to 'sw-ui/src/main')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt index da7bcf26..03177cca 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt @@ -124,8 +124,8 @@ private fun RBuilder.wonderComponent(wonder: ApiWonder) { } } -private fun StyledDOMBuilder<DIV>.wonderStageElement(it: ApiWonderStage, block: StyledDOMBuilder<HTMLTag>.() -> Unit) { - val back = it.cardBack +private fun RBuilder.wonderStageElement(stage: ApiWonderStage, block: StyledDOMBuilder<HTMLTag>.() -> Unit) { + val back = stage.cardBack if (back != null) { cardBackImage(back) { block() @@ -142,7 +142,7 @@ fun CSSBuilder.wonderCardStyle() { top = 60.pct // makes the cards stick out of the bottom of the wonder maxWidth = 24.pct // ratio of card width to wonder width maxHeight = 90.pct // ratio of card height to wonder height - zIndex = -1 // below wonder + zIndex = -1 // below wonder (somehow 0 is not sufficient) } private fun stagePositionPercent(stageIndex: Int, nbStages: Int): Double = when (nbStages) { |