From 88b5644a6c2594887d6f99f1cad72a1b58d60fe4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 11 Jul 2020 17:23:12 +0200 Subject: more fixes --- frontend/views/page/components/tile.handle.js | 36 +++++++++++++++++++-------- 1 file changed, 25 insertions(+), 11 deletions(-) (limited to 'frontend/views/page/components/tile.handle.js') diff --git a/frontend/views/page/components/tile.handle.js b/frontend/views/page/components/tile.handle.js index bd47ae9..33243a7 100644 --- a/frontend/views/page/components/tile.handle.js +++ b/frontend/views/page/components/tile.handle.js @@ -68,17 +68,31 @@ const TileHandle = ({ tile, bounds, box, viewing, onMouseDown, onDoubleClick }) break } if (viewing && tile.href) { - return ( - -
- {content} -
- - ) + if (tile.href.indexOf('http') === 0) { + return ( + +
+ {content} +
+
+ ) + } else { + return ( + +
+ {content} +
+ + ) + } } else { return (