Quick fix for disappearing links (#9216)

This commit is contained in:
Daniel Espino García 2025-10-17 10:54:58 +02:00 committed by GitHub
parent 468b271928
commit 910fd2b449
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,7 +75,8 @@ export function ChannelBanner({bannerInfo, isTopItem}: Props) {
}), [bannerInfo?.background_color, defaultHeight, style.container]);
const markdownTextStyle = useMemo(() => {
const textStyle = getMarkdownTextStyles(theme);
// We do a shallow copy to avoid mutating the original object.
const textStyle = {...getMarkdownTextStyles(theme)};
// channel banner colors are theme independent.
// If we let the link color being set by the theme, it will be unreadable in some cases.