From 24a10acd3432b6f864a386dcc16bdf858c655fc3 Mon Sep 17 00:00:00 2001 From: Michcio Date: Fri, 16 Sep 2022 19:51:57 +0200 Subject: [PATCH] client: Add colour coding to make people distinguishable despite changing pfps --- packages/backend/package.json | 1 + packages/client/src/components/MkNoteSub.vue | 2 +- .../client/src/components/global/avatar.vue | 26 +++++++++++++++++-- yarn.lock | 10 +++++++ 4 files changed, 36 insertions(+), 3 deletions(-) diff --git a/packages/backend/package.json b/packages/backend/package.json index d48855929..e61004a19 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -40,6 +40,7 @@ "cli-highlight": "2.1.11", "color-convert": "2.0.1", "content-disposition": "0.5.4", + "crc": "^4.1.1", "date-fns": "2.28.0", "deep-email-validator": "0.1.21", "escape-regexp": "0.0.1", diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 724ce5424..e7cf6e11c 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -87,7 +87,7 @@ const replies: foundkey.entities.Note[] = props.conversation?.filter(item => ite margin: 0 8px 0 0; width: 38px; height: 38px; - border-radius: calc(8% / 38); + border-radius: 50%; } > .body { diff --git a/packages/client/src/components/global/avatar.vue b/packages/client/src/components/global/avatar.vue index 809a3ef71..b54e04450 100644 --- a/packages/client/src/components/global/avatar.vue +++ b/packages/client/src/components/global/avatar.vue @@ -1,15 +1,16 @@