Fix errant gradient on note to self

This commit is contained in:
yash-signal
2025-03-26 14:34:16 -07:00
committed by GitHub
parent 9f39e5bfe4
commit 0605bcfb84

View File

@@ -189,20 +189,6 @@ export function Avatar({
)}
</>
);
} else if (hasAvatar && !hasImage) {
contentsChildren = (
<>
<div
className="module-Avatar__image"
style={{
backgroundImage: `linear-gradient(to bottom, ${avatarPlaceholderGradient[0]}, ${avatarPlaceholderGradient[1]})`,
}}
/>
{blur === AvatarBlur.BlurPictureWithClickToView && (
<div className="module-Avatar__click-to-view">{i18n('icu:view')}</div>
)}
</>
);
} else if (searchResult) {
contentsChildren = (
<div
@@ -221,6 +207,20 @@ export function Avatar({
)}
/>
);
} else if (hasAvatar && !hasImage) {
contentsChildren = (
<>
<div
className="module-Avatar__image"
style={{
backgroundImage: `linear-gradient(to bottom, ${avatarPlaceholderGradient[0]}, ${avatarPlaceholderGradient[1]})`,
}}
/>
{blur === AvatarBlur.BlurPictureWithClickToView && (
<div className="module-Avatar__click-to-view">{i18n('icu:view')}</div>
)}
</>
);
} else if (shouldUseInitials) {
contentsChildren = (
<div