mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
fix(themes): show animated-theme warning on the thumbnail in My Themes (#1022)
This commit is contained in:
@@ -80,6 +80,30 @@ export function InstalledThemes() {
|
|||||||
<Check size={8} strokeWidth={3} color="white" />
|
<Check size={8} strokeWidth={3} color="white" />
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<span className={`theme-card-label${isActive ? ' is-active' : ''}`}>
|
<span className={`theme-card-label${isActive ? ' is-active' : ''}`}>
|
||||||
{c.label}
|
{c.label}
|
||||||
@@ -104,17 +128,6 @@ export function InstalledThemes() {
|
|||||||
CVD-safe
|
CVD-safe
|
||||||
</span>
|
</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>
|
</button>
|
||||||
{!c.fixed && (
|
{!c.fixed && (
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user