Update badge placement on 52x52 avatars

Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-01-24 15:37:04 -08:00 committed by GitHub
parent b8e59dc330
commit 10c55e696b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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 }],

View File

@ -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 }],