Update badge placement on 52x52 avatars
This commit is contained in:
parent
3bdb6977e6
commit
1e1cb26f08
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018-2021 Signal Messenger, LLC
|
||||
// Copyright 2018-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type {
|
||||
|
@ -85,6 +85,7 @@ const BADGE_PLACEMENT_BY_SIZE = new Map<number, BadgePlacementType>([
|
|||
[36, { bottom: -3, right: 0 }],
|
||||
[40, { bottom: -6, right: -4 }],
|
||||
[48, { bottom: -6, right: -4 }],
|
||||
[52, { bottom: -6, right: -2 }],
|
||||
[56, { bottom: -6, right: 0 }],
|
||||
[64, { bottom: -6, right: 0 }],
|
||||
[80, { bottom: -8, right: 0 }],
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// Copyright 2021-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { assert } from 'chai';
|
||||
|
@ -57,6 +57,7 @@ describe('<Avatar>', () => {
|
|||
[36, { bottom: -3, right: 0 }],
|
||||
[40, { bottom: -6, right: -4 }],
|
||||
[48, { bottom: -6, right: -4 }],
|
||||
[52, { bottom: -6, right: -2 }],
|
||||
[56, { bottom: -6, right: 0 }],
|
||||
[64, { bottom: -6, right: 0 }],
|
||||
[80, { bottom: -8, right: 0 }],
|
||||
|
|
Loading…
Reference in a new issue