comparison 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
comparison
equal deleted inserted replaced
1201:37889ae85133 1202:68fb4af05b73
1 <template> 1 <template>
2 <div class="identifymenu"> 2 <div class="identifymenu">
3 <div @click="$store.commit('application/showIdentify', !showIdentify)" class="d-flex flex-column ui-element minimizer"> 3 <div
4 @click="$store.commit('application/showIdentify', !showIdentify)"
5 class="d-flex flex-column ui-element minimizer"
6 >
4 <div :class="infoStyle"> 7 <div :class="infoStyle">
5 <i class="fa fa-info"></i> 8 <i class="fa fa-info"></i>
6 </div> 9 </div>
7 </div> 10 </div>
8 <div :class="identifyStyle"> 11 <div :class="identifyStyle">
11 <h4 class="card-title">Identified</h4> 14 <h4 class="card-title">Identified</h4>
12 </div> 15 </div>
13 <hr> 16 <hr>
14 <div class="d-flex flex-column features"> 17 <div class="d-flex flex-column features">
15 <small v-if="currentMeasurement"> 18 <small v-if="currentMeasurement">
16 {{ currentMeasurement.quantity }} 19 {{ currentMeasurement.quantity }}
17 ({{ currentMeasurement.unitSymbol }}): 20 ({{ currentMeasurement.unitSymbol }}):
18 {{ currentMeasurement.value }} 21 {{ currentMeasurement.value }}
19 </small> 22 </small>
20 <div v-for="feature of identifiedFeatures" :key="feature.getId()"> 23 <div v-for="feature of identifiedFeatures" :key="feature.getId()">
21 <div v-if="feature.getId()"> 24 <div v-if="feature.getId()">
22 {{ feature.getId().replace(/[.][^.]*$/,"") /* cut away everything from the last . to the end */}}: 25 {{ feature.getId().replace(/[.][^.]*$/,"") /* cut away everything from the last . to the end */}}:
23 <small v-for="(value, key) in prepareProperties(feature)" :key="key"> 26 <small
27 v-for="(value, key) in prepareProperties(feature)"
28 :key="key"
29 >
24 <div v-if="value">{{key}}:{{value}}</div> 30 <div v-if="value">{{key}}:{{value}}</div>
25 </small> 31 </small>
26 </div> 32 </div>
27 </div> 33 </div>
28 </div> 34 </div>
29 <div class="versioninfo"> 35 <div class="versioninfo">
30 <hr /> 36 <hr>gemma
31 gemma <a href="https://hg.intevation.de/gemma/file/tip">source-code</a> {{ versionStr }} 37 <a href="https://hg.intevation.de/gemma/file/tip">source-code</a>
32 <br /> 38 {{ versionStr }}
33 Some data © 39 <br>Some data ©
34 <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a> contributors 40 <a href="https://www.openstreetmap.org/copyright">OpenSteetMap</a>contributors
35
36 </div> 41 </div>
37 </div> 42 </div>
38 </div> 43 </div>
39 </div> 44 </div>
40 </template> 45 </template>