From 1d42f0a60a50ed842ee7aa50a990b252d3bd9355 Mon Sep 17 00:00:00 2001 From: LambdAurora Date: Mon, 30 Aug 2021 23:39:02 +0200 Subject: [PATCH] Introduce new border radius variables for stable theming. --- src/components/common/ChannelIcon.tsx | 8 +++++++- src/components/common/IconBase.tsx | 13 ++++++++----- src/components/common/ServerIcon.tsx | 1 + src/components/common/user/UserIcon.tsx | 3 ++- src/styles/_variables.scss | 2 ++ 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/components/common/ChannelIcon.tsx b/src/components/common/ChannelIcon.tsx index b49a52a5..48a88400 100644 --- a/src/components/common/ChannelIcon.tsx +++ b/src/components/common/ChannelIcon.tsx @@ -51,6 +51,12 @@ export default observer( } } + // The border radius of the channel icon, if it's a server-channel it should be square (undefined). + let borderRadius; + if (!isServerChannel) { + borderRadius = "--border-radius-half"; + } + return ( // ! TODO: replace fallback with +