Skip to content

Commit 321589a

Browse files
committed
fix: message thread header
1 parent 5381c5b commit 321589a

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

web/app/components/MessageThread.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ function onInstallApp() {
9595
</v-btn>
9696
</div>
9797
<v-list
98+
class="pt-0"
9899
v-if="!threadsStore.loadingThreads && threadsStore.threads.length > 0"
99-
class="pa-0"
100100
>
101101
<v-list-item
102102
v-for="thread in threadsStore.threads"

web/app/components/MessageThreadHeader.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,33 +106,35 @@ async function logout() {
106106
</div>
107107
</div>
108108
</v-toolbar-title>
109-
<div v-if="phonesStore.owner" class="d-flex mt-n4">
110-
<p class="text-medium-emphasis mb-n1">
109+
<div v-if="phonesStore.owner" class="d-flex mt-n2">
110+
<p class="text-medium-emphasis mb-n1 mt-0">
111111
{{ phoneCountry(phonesStore.owner) }}
112112
</p>
113113
<v-tooltip v-if="phonesStore.heartbeat" location="end">
114114
<template #activator="{ props: tooltipProps }">
115115
<v-btn
116116
v-bind="tooltipProps"
117-
size="x-small"
117+
size="small"
118+
density="compact"
118119
:to="{
119120
name: 'heartbeats-id',
120121
params: { id: phonesStore.owner },
121122
}"
122123
color="success"
123-
class="ml-2 mt-1 mb-n1"
124+
class="ml-2 mb-0 mt-1"
124125
icon
126+
variant="text"
125127
>
126128
<v-icon
127129
v-if="phonesStore.heartbeat.charging"
128130
size="small"
129131
class="mt-n1"
130132
:icon="mdiBatteryChargingHigh"
131133
/>
132-
<v-icon v-else size="x-small" :icon="mdiCircle" />
134+
<v-icon v-else size="x-small" color="success" :icon="mdiCircle" />
133135
</v-btn>
134136
</template>
135-
<h4>Last Heartbeat</h4>
137+
<h4 class="font-weight-bold mt-0 mb-0">Last Heartbeat</h4>
136138
{{ humanizeTime(phonesStore.heartbeat.timestamp) }} ago
137139
</v-tooltip>
138140
</div>

web/app/utils/filters.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export function formatBillingPeriodDateOrdinal(value: string): string {
6868

6969
export function humanizeTime(value: string): string {
7070
const durations = intervalToDuration({
71-
start: new Date(),
72-
end: new Date(value),
71+
start: new Date(value),
72+
end: new Date(),
7373
})
7474
return formatDuration(durations)
7575
}

0 commit comments

Comments
 (0)