Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,15 @@
</div>
</template>
<template #after>
<f7-badge :color="thingStatusBadgeColor(thing.statusInfo)" :tooltip="thing.statusInfo.description">
{{ thingStatusBadgeText(thing.statusInfo) }}
</f7-badge>
<div class="badge-with-marker">
<f7-badge :color="thingStatusBadgeColor(thing.statusInfo)" :tooltip="thing.statusInfo.description || null">
{{ thingStatusBadgeText(thing.statusInfo) }}
</f7-badge>
<span
v-if="thing.statusInfo.status === 'ONLINE' && thing.statusInfo.description && thing.statusInfo.description !== ''"
class="badge-marker-dot">
</span>
</div>
</template>
<template #after-title>
<f7-icon v-if="!thing.editable" f7="lock_fill" size="1rem" color="gray" />
Expand Down Expand Up @@ -214,6 +220,19 @@
<style lang="stylus">
.things-list
margin-bottom calc(var(--f7-fab-size) + 2 * calc(var(--f7-fab-margin) + var(--f7-safe-area-bottom)))
.badge-with-marker
position relative
display inline-block
.badge-marker-dot
position absolute
top -4px
right -4px
width 10px
height 10px
background-color var(--f7-color-blue)
border 1px solid var(--f7-list-bg-color)
border-radius 50%
pointer-events none
</style>

<script>
Expand Down
Loading