From 10c55e696b4396c17fde01e1877e958a9ad3b6cd Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Mon, 24 Jan 2022 15:37:04 -0800 Subject: [PATCH] Update badge placement on 52x52 avatars Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> --- ts/components/Avatar.tsx | 3 ++- ts/test-electron/components/Avatar_test.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/components/Avatar.tsx b/ts/components/Avatar.tsx index 5cc26d3eb..dd403cc9e 100644 --- a/ts/components/Avatar.tsx +++ b/ts/components/Avatar.tsx @@ -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([ [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 }], diff --git a/ts/test-electron/components/Avatar_test.tsx b/ts/test-electron/components/Avatar_test.tsx index c9fa19077..bbd0e5e05 100644 --- a/ts/test-electron/components/Avatar_test.tsx +++ b/ts/test-electron/components/Avatar_test.tsx @@ -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('', () => { [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 }],