Skip to content

Commit 3101c49

Browse files
Add description tooltip
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
1 parent 2bdc89c commit 3101c49

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/components/TopBar/TopBar.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@
3333
<p class="title">
3434
{{ conversation.displayName }}
3535
</p>
36-
<p v-if="conversation.description" class="description">
36+
<p v-if="conversation.description"
37+
v-tooltip.bottom="{
38+
content: conversation.description,
39+
delay: { show: 500, hide: 100 },
40+
}"
41+
class="description">
3742
{{ conversation.description }}
3843
</p>
3944
</div>
@@ -139,10 +144,15 @@ import { generateUrl } from '@nextcloud/router'
139144
import { callParticipantCollection } from '../../utils/webrtc/index'
140145
import { emit } from '@nextcloud/event-bus'
141146
import ConversationIcon from '../ConversationIcon'
147+
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
142148
143149
export default {
144150
name: 'TopBar',
145151
152+
directives: {
153+
Tooltip,
154+
},
155+
146156
components: {
147157
ActionButton,
148158
Actions,

0 commit comments

Comments
 (0)