diff client/src/identify/Identify.vue @ 1202:68fb4af05b73

fix: prevent identify tool from jumping during page load In order to prevent jumping search embedded in spacer div with 100% size.
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 19 Nov 2018 10:09:25 +0100
parents 1ae93a0438df
children 4f666dbb9abd
line wrap: on
line diff
--- a/client/src/identify/Identify.vue	Mon Nov 19 09:09:27 2018 +0100
+++ b/client/src/identify/Identify.vue	Mon Nov 19 10:09:25 2018 +0100
@@ -1,6 +1,9 @@
 <template>
     <div class="identifymenu">
-        <div @click="$store.commit('application/showIdentify', !showIdentify)" class="d-flex flex-column ui-element minimizer">
+        <div
+            @click="$store.commit('application/showIdentify', !showIdentify)"
+            class="d-flex flex-column ui-element minimizer"
+        >
             <div :class="infoStyle">
                 <i class="fa fa-info"></i>
             </div>
@@ -13,26 +16,28 @@
                 <hr>
                 <div class="d-flex flex-column features">
                     <small v-if="currentMeasurement">
-                      {{ currentMeasurement.quantity }}
-                      ({{ currentMeasurement.unitSymbol }}):
-                      {{ currentMeasurement.value }}
+                        {{ currentMeasurement.quantity }}
+                        ({{ currentMeasurement.unitSymbol }}):
+                        {{ currentMeasurement.value }}
                     </small>
                     <div v-for="feature of identifiedFeatures" :key="feature.getId()">
                         <div v-if="feature.getId()">
                             {{ feature.getId().replace(/[.][^.]*$/,"") /* cut away everything from the last . to the end */}}:
-                            <small v-for="(value, key) in prepareProperties(feature)" :key="key">
+                            <small
+                                v-for="(value, key) in prepareProperties(feature)"
+                                :key="key"
+                            >
                                 <div v-if="value">{{key}}:{{value}}</div>
                             </small>
                         </div>
                     </div>
                 </div>
                 <div class="versioninfo">
-                    <hr />
-                    gemma <a href="https://hg.intevation.de/gemma/file/tip">source-code</a> {{ versionStr }}
-                    <br />
-                    Some data ©
-                    <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a> contributors
-
+                    <hr>gemma
+                    <a href="https://hg.intevation.de/gemma/file/tip">source-code</a>
+                    {{ versionStr }}
+                    <br>Some data ©
+                    <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a>contributors
                 </div>
             </div>
         </div>