fix(frontend): 適用中のテーマを保持する際にリアクティビティも保持される問題を修正 (#16304)

* fix(frontend): 現在のテーマを保持する際にリアクティビティが保持される問題を修正

* Update Changelog

* Update theme.ts
This commit is contained in:
かっこかり 2025-07-31 18:47:22 +09:00 committed by GitHub
parent 35888eb8f4
commit a45e89c300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@
### Client
- Fix: 一部の設定検索結果が存在しないパスになる問題を修正
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1171)
- Fix: テーマエディタが動作しない問題を修正
### Server
- Enhance: ノートの削除処理の効率化

View File

@ -137,7 +137,8 @@ export function applyTheme(theme: Theme, persist = true) {
}
if (deepEqual(currentTheme, theme)) return;
currentTheme = theme;
// リアクティビティ解除
currentTheme = deepClone(theme);
if (window.document.startViewTransition != null && prefer.s.animation) {
window.document.documentElement.classList.add('_themeChanging_');