Skip to content

Commit

Permalink
fix 30c4445: restore <details> state in compact mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Feb 9, 2025
1 parent a1a6d37 commit 149d41c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/dom-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ prefs.ready.then(() => tBody(() => {
mqCompact?.(val => {
for (const el of $$(SEL))
if (!el.matches('.ignore-pref'))
el.open = !val && prefs.__values[el.dataset.pref];
el.open = (!val || !el.classList.contains('ignore-pref-if-compact'))
&& prefs.__values[el.dataset.pref];
});
function canSave(el) {
return !el.matches('.ignore-pref, .compact-layout .ignore-pref-if-compact');
Expand Down

0 comments on commit 149d41c

Please sign in to comment.