Fix isMobile trigger and add more details on media

This commit is contained in:
2026-05-13 10:41:01 +02:00
parent daca0a8294
commit b88fb4ca9d
6 changed files with 29 additions and 15 deletions

View File

@@ -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>