fix(frontend): 適用中のテーマを保持する際にリアクティビティも保持される問題を修正 (#16304)
* fix(frontend): 現在のテーマを保持する際にリアクティビティが保持される問題を修正 * Update Changelog * Update theme.ts
This commit is contained in:
parent
35888eb8f4
commit
a45e89c300
|
@ -7,6 +7,7 @@
|
|||
### Client
|
||||
- Fix: 一部の設定検索結果が存在しないパスになる問題を修正
|
||||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1171)
|
||||
- Fix: テーマエディタが動作しない問題を修正
|
||||
|
||||
### Server
|
||||
- Enhance: ノートの削除処理の効率化
|
||||
|
|
|
@ -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_');
|
||||
|
|
Loading…
Reference in New Issue