Skip to content

Commit 6433417

Browse files
author
Vincent Petry
authored
Prevent selecting the placeholder (#68)
Adds CSS property "user-select: none" to the avatar element.
1 parent 9925b3e commit 6433417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Avatar.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export default {
8686
fontWeight: 'bold',
8787
alignItems: 'center',
8888
justifyContent: 'center',
89-
textAlign: 'center'
89+
textAlign: 'center',
90+
userSelect: 'none'
9091
}
9192
9293
const imgBackgroundAndFontStyle = {

0 commit comments

Comments
 (0)