refactor: online indicator
This commit is contained in:
parent
7b51c56169
commit
eb14539989
2 changed files with 8 additions and 8 deletions
|
@ -27,19 +27,19 @@ const text = $computed(() => {
|
|||
border-radius: 120%; // Blinkのバグか知らんけど、100%ぴったりにすると何故か若干楕円でレンダリングされる
|
||||
|
||||
&.online {
|
||||
background: #58d4c9;
|
||||
background: #9ccfd8;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #e4bc48;
|
||||
background: #f6c177;
|
||||
}
|
||||
|
||||
&.offline {
|
||||
background: #ea5353;
|
||||
background: #eb6f92;
|
||||
}
|
||||
|
||||
&.unknown {
|
||||
background: #888;
|
||||
background: #6e6a86;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<template>
|
||||
<span v-if="disableLink" v-user-preview="disablePreview ? undefined : user.id" class="eiwwqkts _noSelect" :class="{ cat: user.isCat, square: $store.state.squareAvatars }" :style="{ color }" :title="acct(user)" @click="onClick">
|
||||
<img class="inner" :src="url" decoding="async"/>
|
||||
<MkUserOnlineIndicator v-if="showIndicator" class="indicator" :user="user"/>
|
||||
<MkUserOnlineIndicator v-if="showIndicator && user.instance == null" class="indicator" :user="user"/>
|
||||
</span>
|
||||
<MkA v-else v-user-preview="disablePreview ? undefined : user.id" class="eiwwqkts _noSelect" :class="{ cat: user.isCat, square: $store.state.squareAvatars }" :style="{ color }" :to="userPage(user)" :title="acct(user)" :target="target">
|
||||
<img class="inner" :src="url" decoding="async"/>
|
||||
<MkUserOnlineIndicator v-if="showIndicator" class="indicator" :user="user"/>
|
||||
<MkUserOnlineIndicator v-if="showIndicator && user.instance == null" class="indicator" :user="user"/>
|
||||
</MkA>
|
||||
</template>
|
||||
|
||||
|
@ -96,8 +96,8 @@ watch(() => props.user.avatarBlurhash, () => {
|
|||
z-index: 1;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 20%;
|
||||
height: 20%;
|
||||
width: 18%;
|
||||
height: 18%;
|
||||
}
|
||||
|
||||
&.square {
|
||||
|
|
Loading…
Reference in a new issue