Skip to content

Commit 62d95de

Browse files
committed
made the map area message more explicit
1 parent b2a57ab commit 62d95de

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

tiling-explorer-2.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,16 @@ def _(mo):
7777

7878
@app.cell(hide_code=True)
7979
def _(mo, pals, tile, tile_map_button, tiled_map, vars):
80-
mo.stop(not tile_map_button.value, mo.md("### Click the **Tile map!** button to continue and to refresh the map after any design changes"))
80+
_msg = "\n".join([
81+
"## Click the **Tile map!** button to start",
82+
"## or to refresh the map",
83+
"## after design changes",
84+
])
85+
mo.stop(not tile_map_button.value,
86+
mo.md(_msg).style({"display": "flex", "height": "500px",
87+
"justify-content": "center",
88+
"align-items": "center",
89+
"text-align": "center"}))
8190
tiled_map.variables = {k: v for k, v in zip(tile.tiles.tile_id, vars.value)}
8291
tiled_map.colourmaps = {k: v for k, v in zip(vars.value, pals.value)}
8392
tiled_map.render(legend=False)

0 commit comments

Comments
 (0)