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