diff --git a/packages/frontend/src/components/MkAnnouncementDialog.vue b/packages/frontend/src/components/MkAnnouncementDialog.vue
index 032a815ee6..98de572df1 100644
--- a/packages/frontend/src/components/MkAnnouncementDialog.vue
+++ b/packages/frontend/src/components/MkAnnouncementDialog.vue
@@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
diff --git a/packages/frontend/src/pages/announcement.vue b/packages/frontend/src/pages/announcement.vue
index 1d8d821b98..41bbd6103b 100644
--- a/packages/frontend/src/pages/announcement.vue
+++ b/packages/frontend/src/pages/announcement.vue
@@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only
🆕
-
+
diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts
index 63149e3e2c..cda8f49047 100644
--- a/packages/frontend/vite.config.ts
+++ b/packages/frontend/vite.config.ts
@@ -83,6 +83,24 @@ export function getConfig(): UserConfig {
pluginVue(),
pluginUnwindCssModuleClassName(),
pluginJson5(),
+ iconsReplace({
+ values: {
+ 'ti ti-alert-triangle': 'ph-warning ph-bold ph-lg',
+ },
+ exclude: [
+ '**/components/MkAnnouncementDialog.*',
+ '**/pages/announcement.*',
+ ],
+ }),
+ iconsReplace({
+ values: {
+ 'ti ti-alert-triangle': 'ph-warning-circle ph-bold ph-lg',
+ },
+ include: [
+ '**/components/MkAnnouncementDialog.*',
+ '**/pages/announcement.*',
+ ],
+ }),
iconsReplace({
values: {
'ti ti-terminal-2': 'ph-terminal-window ph-bold ph-lg',
@@ -118,7 +136,6 @@ export function getConfig(): UserConfig {
'ti ti-eye-off': 'ti ti-eye-exclamation',
'ti ti-eye-exclamation': 'ph-eye-slash ph-bold ph-lg',
'ti ti-lock': 'ph-lock ph-bold ph-lg',
- 'ti ti-alert-triangle': 'ph-warning ph-bold ph-lg',
},
}),
...process.env.NODE_ENV === 'production'