From 845a3f0378841747ba5fab031062bf8a45d4dd14 Mon Sep 17 00:00:00 2001 From: Gautier P Date: Mon, 1 Mar 2021 20:05:29 +0100 Subject: [PATCH] Add message if no elevation data is available (#373) --- css/style.css | 13 +++++++++++++ index.html | 6 +++++- js/plugin/Heightgraph.js | 10 ++++++++++ locales/en.json | 1 + 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index cab75fb..2dbf8c2 100644 --- a/css/style.css +++ b/css/style.css @@ -770,3 +770,16 @@ table.dataTable.display tbody tr:hover.selected { content: '\f06a'; /* fa-exclamation */ margin-left: 3px; } + +#elevation-chart { + position: relative; +} + +#no-elevation-data { + z-index: 1000; + margin: 0; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} diff --git a/index.html b/index.html index e8b885b..c7272b3 100644 --- a/index.html +++ b/index.html @@ -1036,7 +1036,11 @@ -
+
+ +