Fix isMobile trigger and add more details on media
This commit is contained in:
@@ -15,7 +15,7 @@ export default {
|
||||
options: Object,
|
||||
project: Object
|
||||
},
|
||||
inject: ['lang', 'consts'],
|
||||
inject: ['lang', 'consts', 'isMobile'],
|
||||
computed: {
|
||||
timeinfo() {
|
||||
return (this.options.type == 'media')?
|
||||
@@ -61,16 +61,16 @@ export default {
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div class="section coordinates">
|
||||
<div class="section time">
|
||||
<projectRelTime :icon="timeinfo.icon" :localTime="localTime" :siteTime="timeinfo.site_time" :offset="timeinfo.offset" />
|
||||
</div>
|
||||
<div v-if="!isMobile()" class="section coordinates">
|
||||
<spotIcon :icon="'coords'" width="fixed" size="lg" margin="right" />
|
||||
<projectMapLink :options="options" />
|
||||
</div>
|
||||
<div v-if="options.altitude" class="section altitude">
|
||||
<spotIcon :icon="'altitude'" width="fixed" size="lg" :text="options.altitude+'m'" />
|
||||
</div>
|
||||
<div class="section time">
|
||||
<projectRelTime :icon="timeinfo.icon" :localTime="localTime" :siteTime="timeinfo.site_time" :offset="timeinfo.offset" />
|
||||
</div>
|
||||
<div class="section weather" v-if="options.weather_icon && options.weather_icon!='unknown'" :title="options.weather_cond==''?'':lang.get('weather.'+options.weather_icon)">
|
||||
<spotIcon :icon="options.weather_icon" width="fixed" size="lg" :text="options.weather_temp+'°C'" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user