Update badge placement on 52x52 avatars
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
This commit is contained in:
parent
b8e59dc330
commit
10c55e696b
|
@ -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 New Issue