summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/battlemap/src/View/Battlemap.elm27
-rw-r--r--src/battlemap/www/style.css2
2 files changed, 18 insertions, 11 deletions
diff --git a/src/battlemap/src/View/Battlemap.elm b/src/battlemap/src/View/Battlemap.elm
index d9a98d1..b805e6b 100644
--- a/src/battlemap/src/View/Battlemap.elm
+++ b/src/battlemap/src/View/Battlemap.elm
@@ -83,17 +83,22 @@ get_html model =
[
(Html.Attributes.class "battlemap-actual"),
(Html.Attributes.style
- [
- (
- "transform",
- (
- "scale("
- ++
- (toString (Struct.UI.get_zoom_level model.ui))
- ++ ")"
- )
- )
- ]
+ (
+ if ((Struct.UI.get_zoom_level model.ui) == 1)
+ then []
+ else
+ [
+ (
+ "transform",
+ (
+ "scale("
+ ++
+ (toString (Struct.UI.get_zoom_level model.ui))
+ ++ ")"
+ )
+ )
+ ]
+ )
)
]
(
diff --git a/src/battlemap/www/style.css b/src/battlemap/www/style.css
index 08f1e22..b4e744a 100644
--- a/src/battlemap/www/style.css
+++ b/src/battlemap/www/style.css
@@ -25,6 +25,8 @@
overflow: auto;
width: inherit;
+ /*** Otherwise, it won't display correctly without 'transform: scale' ***/
+ position: relative;
}
.battlemap-footer