Skip to content

Commit fe01bb5

Browse files
committed
fix: remove css infinite animation to improve perf
Signed-off-by: Innei <[email protected]>
1 parent 6f645b0 commit fe01bb5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/components/layout/header/internal/Activity.tsx

+8-9
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ const appDescription = {
4545
'Microsoft PowerPoint': '画饼',
4646
SimplyPiano: '练琴',
4747

48-
"Microsoft Edge": '看b站',
48+
'Microsoft Edge': '看b站',
4949
umamusume: '启动!',
5050
WindowsTerminal: 'del /f /s /q c:/ (不是',
51-
"卡拉彼丘": '启动!',
52-
"Yuanshen.exe": '启动!',
53-
51+
卡拉彼丘: '启动!',
52+
'Yuanshen.exe': '启动!',
5453
} as any
5554
const appLabels: { [app: string]: string } = {
5655
'Activity Monitor': 'activity',
@@ -130,13 +129,13 @@ const appLabels: { [app: string]: string } = {
130129

131130
cmusic: 'cmusic',
132131

133-
"Microsoft Edge": "edge",
132+
'Microsoft Edge': 'edge',
134133
firefox: 'firefox',
135134
idea64: 'idea',
136-
"Explorer.EXE": 'windows_explorer',
135+
'Explorer.EXE': 'windows_explorer',
137136
WindowsTerminal: 'windows_terminal',
138-
"卡拉彼丘": "calatopia",
139-
"Yuanshen.exe": "genshin",
137+
卡拉彼丘: 'calatopia',
138+
'Yuanshen.exe': 'genshin',
140139
}
141140
// autocorrect: true
142141
export const Activity = memo(() => {
@@ -203,7 +202,7 @@ export const Activity = memo(() => {
203202
{!!media && (
204203
<m.div className="absolute bottom-0 left-0 top-0 z-[10] flex items-center lg:left-[-30px]">
205204
<div className="absolute inset-0 z-[-1] flex center">
206-
<div className="h-6 w-6 animate-ping rounded-md ring-2 ring-uk-red-dark" />
205+
<div className="h-6 w-6 rounded-md ring-2 ring-red-500 dark:ring-red-400" />
207206
</div>
208207
<FloatPopover
209208
TriggerComponent={TriggerComponent}

0 commit comments

Comments
 (0)