Introduce new border radius variables for stable theming.

This commit is contained in:
LambdAurora
2021-08-30 23:39:02 +02:00
parent d368820aeb
commit 1d42f0a60a
5 changed files with 20 additions and 7 deletions

View File

@@ -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 <picture /> + <source />
<ImageIconBase
@@ -59,7 +65,7 @@ export default observer(
height={size}
loading="lazy"
aria-hidden="true"
square={isServerChannel}
{...borderRadius}
src={iconURL ?? fallback}
/>
);