Simplify the getDecorationZIndex function
(cherry picked from commit e43c58a9555b6a241455a11f7671d0e72c37bdfd)
This commit is contained in:
parent
fb5a51a7a7
commit
d7cc66551f
|
@ -115,8 +115,7 @@ function getDecorationOffset(decoration: Omit<Misskey.entities.UserDetailed['ava
|
|||
}
|
||||
|
||||
function getDecorationZIndex(decoration: Omit<Misskey.entities.UserDetailed['avatarDecorations'][number], 'id'>) {
|
||||
const zIndex = decoration.showBelow ? 0 : 1;
|
||||
return zIndex === 1 ? undefined : `${zIndex}`;
|
||||
return decoration.showBelow ? '0' : undefined;
|
||||
}
|
||||
|
||||
const color = ref<string | undefined>();
|
||||
|
|
Loading…
Reference in New Issue