Skip to content

Commit 7bc16ee

Browse files
authored
feat: show full timestamp tooltip on relative (#1771)
Signed-off-by: Pedro Lamas <[email protected]>
1 parent 2cc3420 commit 7bc16ee

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

src/components/layout/AppNotificationMenu.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,18 @@
8282
v-safe-html="n.description"
8383
class="notification-description"
8484
/>
85-
<v-list-item-subtitle class="notification-timestamp">
86-
{{ $filters.formatRelativeTimeToNow(n.timestamp * 1000) }}
87-
</v-list-item-subtitle>
85+
<v-tooltip bottom>
86+
<template #activator="{ on, attrs }">
87+
<v-list-item-subtitle
88+
v-bind="attrs"
89+
class="notification-timestamp"
90+
v-on="on"
91+
>
92+
{{ $filters.formatRelativeTimeToNow(n.timestamp * 1000) }}
93+
</v-list-item-subtitle>
94+
</template>
95+
<span>{{ $filters.formatDateTime(n.timestamp * 1000) }}</span>
96+
</v-tooltip>
8897
<v-list-item-subtitle v-if="n.to">
8998
<app-btn
9099
v-if="!n.to.startsWith('http')"

src/components/settings/VersionInformationDialog.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,17 @@
5151
>
5252
<strong>{{ commit.author }}</strong>
5353
</a>
54-
{{ $t('app.version.label.committed') }} {{ $filters.formatRelativeTimeToNow(+commit.date * 1000) }}
54+
<v-tooltip bottom>
55+
<template #activator="{ on, attrs }">
56+
<span
57+
v-bind="attrs"
58+
v-on="on"
59+
>
60+
{{ $t('app.version.label.committed') }} {{ $filters.formatRelativeTimeToNow(+commit.date * 1000) }}
61+
</span>
62+
</template>
63+
<span>{{ $filters.formatDateTime(+commit.date * 1000) }}</span>
64+
</v-tooltip>
5565
</div>
5666
</div>
5767
<div>

0 commit comments

Comments
 (0)