summaryrefslogtreecommitdiff
path: root/sw-ui/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-06-02 00:28:28 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-06-02 00:28:28 +0200
commit4284dead38e01581f4a0c38cfab3629514a5a24d (patch)
treea280a16a8ba19633561f6940d0d7d2ac29d02a0b /sw-ui/src/main/kotlin/org/luxons
parentAdd blueprintjs's divider (diff)
downloadseven-wonders-4284dead38e01581f4a0c38cfab3629514a5a24d.tar.gz
seven-wonders-4284dead38e01581f4a0c38cfab3629514a5a24d.tar.bz2
seven-wonders-4284dead38e01581f4a0c38cfab3629514a5a24d.zip
Simplify board summary using BP's divider
Diffstat (limited to 'sw-ui/src/main/kotlin/org/luxons')
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/BoardSummary.kt12
1 files changed, 3 insertions, 9 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/BoardSummary.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/BoardSummary.kt
index 0d27f19a..67f94848 100644
--- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/BoardSummary.kt
+++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/BoardSummary.kt
@@ -1,5 +1,6 @@
package org.luxons.sevenwonders.ui.components.game
+import com.palantir.blueprintjs.bpDivider
import kotlinx.css.*
import kotlinx.html.DIV
import org.luxons.sevenwonders.model.api.PlayerDTO
@@ -50,15 +51,8 @@ fun RBuilder.boardSummary(
flexDirection = if (boardSummarySide == BoardSummarySide.TOP) FlexDirection.row else FlexDirection.column
alignItems = boardSummarySide.alignment
}
- styledDiv {
- css {
- display = Display.flex
- flexDirection = if (boardSummarySide == BoardSummarySide.TOP) FlexDirection.row else FlexDirection.column
- alignItems = boardSummarySide.alignment
- if (boardSummarySide == BoardSummarySide.TOP) marginRight = 1.rem else marginBottom = 1.rem
- }
- generalCounts(board, tokenSize, boardSummarySide.tokenCountPosition)
- }
+ generalCounts(board, tokenSize, boardSummarySide.tokenCountPosition)
+ bpDivider()
scienceTokens(board, tokenSize, boardSummarySide.tokenCountPosition)
}
block()
bgstack15