Skip to content

Commit eccf565

Browse files
pdanpdanrstoenescu
authored andcommitted
QChat: fix shrinked avatar with long text (quasarframework#2360)
close quasarframework#2349
1 parent 4c3ef0a commit eccf565

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dev/components/components/chat.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ export default {
8484
avatar: '/statics/linux-avatar.png',
8585
stamp: 'Yesterday at 13:51'
8686
},
87+
{
88+
name: 'Vladimir',
89+
text: ['I\'m also fine, thank you. But I feel like writing a very long text here too test the avatar.'],
90+
avatar: '/statics/boy-avatar.png',
91+
stamp: 'Yesterday 13:34'
92+
},
8793
{
8894
label: 'Sunday, 19th'
8995
},

src/components/chat/QChatMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default {
9292
this.$slots.avatar || (
9393
this.avatar
9494
? h('img', {
95-
staticClass: 'q-message-avatar',
95+
staticClass: 'q-message-avatar col-auto',
9696
attrs: { src: this.avatar }
9797
})
9898
: null

0 commit comments

Comments
 (0)