fix(themes): show animated-theme warning on the thumbnail in My Themes (#1022)

This commit is contained in:
Psychotoxical
2026-06-07 21:26:19 +02:00
committed by GitHub
parent 4148e063dd
commit 49ad3618a8
+24 -11
View File
@@ -80,6 +80,30 @@ export function InstalledThemes() {
<Check size={8} strokeWidth={3} color="white" />
</div>
)}
{animRisk && c.animated && (
<span
role="img"
aria-label={t('settings.themeAnimationWarning')}
data-tooltip={t('settings.themeAnimationWarning')}
data-tooltip-pos="top"
style={{
position: 'absolute',
bottom: '3px',
right: '3px',
width: '16px',
height: '16px',
borderRadius: '50%',
background: 'var(--bg-elevated)',
color: 'var(--warning)',
border: '1px solid var(--warning)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
>
<AlertTriangle size={10} />
</span>
)}
</div>
<span className={`theme-card-label${isActive ? ' is-active' : ''}`}>
{c.label}
@@ -104,17 +128,6 @@ export function InstalledThemes() {
CVD-safe
</span>
)}
{animRisk && c.animated && (
<span
role="img"
aria-label={t('settings.themeAnimationWarning')}
data-tooltip={t('settings.themeAnimationWarning')}
data-tooltip-pos="top"
style={{ display: 'inline-flex', color: 'var(--warning)', marginTop: 2 }}
>
<AlertTriangle size={12} />
</span>
)}
</button>
{!c.fixed && (
<button