fix album search
This commit is contained in:
parent
9d53abada5
commit
c484148078
1 changed files with 2 additions and 2 deletions
|
|
@ -237,7 +237,7 @@ export const themeManager = {
|
|||
|
||||
if (theme === 'system') {
|
||||
const isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
document.documentElement.setAttribute('data-theme', isDark ? 'dark' : 'white');
|
||||
document.documentElement.setAttribute('data-theme', isDark ? 'monochrome' : 'white');
|
||||
} else {
|
||||
document.documentElement.setAttribute('data-theme', theme);
|
||||
}
|
||||
|
|
@ -1172,7 +1172,7 @@ export const sidebarSectionSettings = {
|
|||
if (typeof window !== 'undefined' && window.matchMedia) {
|
||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => {
|
||||
if (themeManager.getTheme() === 'system') {
|
||||
document.documentElement.setAttribute('data-theme', e.matches ? 'dark' : 'white');
|
||||
document.documentElement.setAttribute('data-theme', e.matches ? 'monochrome' : 'white');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue