From 1d838046fb2f63370c598a0857c026a7cd4aeb86 Mon Sep 17 00:00:00 2001 From: Gautier P Date: Wed, 24 Feb 2021 10:38:41 +0100 Subject: [PATCH] Add message if no elevation data is available --- css/style.css | 13 +++++++++++++ index.html | 6 +++++- js/plugin/Heightgraph.js | 7 +++++++ locales/en.json | 1 + 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/css/style.css b/css/style.css index cab75fb9..2dbf8c25 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 e8b885be..c7272b3a 100644 --- a/index.html +++ b/index.html @@ -1036,7 +1036,11 @@

-
+
+ +