changeset 3644:9e91b416d5bb

client: cross profile: display arrow in diagram consciously diceded to not draw it in the svg so it will not be exported to pdf since there it does not make sense without the map
author Markus Kottlaender <markus@intevation.de>
date Wed, 12 Jun 2019 17:10:49 +0200
parents f9032442620a
children 02951a62e8c6
files client/src/components/fairway/Fairwayprofile.vue
diffstat 1 files changed, 26 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/Fairwayprofile.vue	Wed Jun 12 16:37:57 2019 +0200
+++ b/client/src/components/fairway/Fairwayprofile.vue	Wed Jun 12 17:10:49 2019 +0200
@@ -94,8 +94,9 @@
       </DiagramLegend>
       <div
         ref="diagramContainer"
-        class="d-flex flex-fill justify-content-center align-items-center diagram-container"
+        class="d-flex flex-fill justify-content-center align-items-center diagram-container position-relative"
       >
+        <div class="direction-indicator"></div>
         <div v-if="!fairwayData">
           <translate>No data available.</translate>
         </div>
@@ -104,6 +105,30 @@
   </div>
 </template>
 
+<style lang="sass" scoped>
+.direction-indicator
+  width: 70px
+  height: 0
+  border-top: dashed 2px #333
+  position: absolute
+  bottom: 20px
+  left: 115px
+  margin-left: -35px
+  &::after
+    content: ""
+    width: 0
+    height: 0
+    border-width: 10px
+    border-top-width: 5px
+    border-bottom-width: 5px
+    border-style: solid
+    border-color: transparent
+    border-left-color: #333
+    position: absolute
+    right: -20px
+    top: -6px
+</style>
+
 <script>
 /* This is Free Software under GNU Affero General Public License v >= 3.0
  * without warranty, see README.md and license for details.