Fix issues introduced by #162.

Switch to more consistent naming scheme.
This commit is contained in:
Paul
2021-09-03 11:21:51 +01:00
parent 966daa6c78
commit 9adad4a4ab
4 changed files with 16 additions and 13 deletions

View File

@@ -52,9 +52,9 @@ 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";
let borderRadius: string | undefined = "--border-radius-channel-icon";
if (isServerChannel) {
borderRadius = undefined;
}
return (
@@ -65,7 +65,7 @@ export default observer(
height={size}
loading="lazy"
aria-hidden="true"
{...borderRadius}
borderRadius={borderRadius}
src={iconURL ?? fallback}
/>
);