diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 02:52:10 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-10 02:52:10 +0100 |
commit | 833b337421a8113d78195bd3c45bd04312d93692 (patch) | |
tree | d4d33e51e3ae98d961debaec158c48baa72dd6a2 /sw-ui/src/main | |
parent | Fix lobby state updates in game browser (diff) | |
download | seven-wonders-833b337421a8113d78195bd3c45bd04312d93692.tar.gz seven-wonders-833b337421a8113d78195bd3c45bd04312d93692.tar.bz2 seven-wonders-833b337421a8113d78195bd3c45bd04312d93692.zip |
Show full table card on hover
Resolves:
https://github.com/joffrey-bion/seven-wonders/issues/115
Diffstat (limited to 'sw-ui/src/main')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt | 8 |
1 files changed, 8 insertions, 0 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 9cc72c31..3febee86 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 @@ -79,6 +79,14 @@ private fun RBuilder.tableCard(card: TableCard, indexInColumn: Int, block: Style } maxWidth = 100.pct maxHeight = 70.pct + + // bring to the foreground on hover + hover { + zIndex = 1000 + maxWidth = 110.pct + maxHeight = 75.pct + boxShadow(offsetX = 3.px, offsetY = 3.px, blurRadius = 7.px, color = Color.black) + } } block() } |