File tree Expand file tree Collapse file tree
frontend/app/components/site Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 >
99 <m-flex inline :column =" column" class =" items-center" :gap =" neededGap" >
1010 <NuxtLink v-if =" avatar" class =" inline-flex" :to =" link" >
11- <m-avatar :size =" avatarSize" :src =" user?.avatar" :use-thumb =" user?.avatar_has_thumb " :style =" { opacity: isBanned ? 0.6 : 1 }" />
11+ <m-avatar :size =" avatarSize" :src =" user?.avatar" :use-thumb =" useThumb " :style =" { opacity: isBanned ? 0.6 : 1 }" />
1212 </NuxtLink >
1313
1414 <m-flex gap =" 1" class =" break-words" column >
@@ -79,6 +79,13 @@ const isOwnOrModerator = computed(() => me && (props.user?.id === me.id || canMo
7979const statusString = computed (() => t (isOnline .value ? ' online' : ' offline' ));
8080const statusColor = computed (() => isOnline .value ? ' green' : ' gray' );
8181
82+ const useThumb = computed (() => {
83+ if (! props .user ?.avatar_has_thumb ) {
84+ return false ;
85+ }
86+ return props .avatarSize === ' xs' || props .avatarSize === ' sm' ;
87+ });
88+
8289const isBanned = computed (() => !! (props .user ?.ban || props .user ?.game_ban ));
8390const userTag = computed (() => {
8491 if (props .user && props .user .show_tag !== ' none' ) {
You can’t perform that action at this time.
0 commit comments