Browse Source

Make avatar unselectable

Tusooa Zhu 3 years ago
parent
commit
aaf0b985ad

+ 2 - 0
src/components/mention_link/mention_link.scss

@@ -17,6 +17,8 @@
     width: 1.5em;
     height: 1.5em;
     vertical-align: middle;
+    user-select: none;
+    margin-right: 0.2em;
   }
 
   .full {

+ 2 - 3
src/components/mention_link/mention_link.vue

@@ -23,13 +23,12 @@
         :href="url"
         @click.prevent="onClick"
       >
+        <!-- eslint-disable vue/no-v-html -->
         <UserAvatar
           v-if="shouldShowAvatar"
           class="mention-avatar"
           :user="user"
-        />
-        <!-- eslint-disable vue/no-v-html -->
-        <span
+        /><span
           class="shortName"
         ><FAIcon
           v-if="useAtIcon"