Drop bootstrap modal.less by using <dialog> <header> and <footer>

https://snappymail.eu/demo/ updated for testing
This commit is contained in:
djmaze 2021-11-07 17:06:08 +01:00
parent 880d4a05e9
commit 6170de5aee
70 changed files with 1521 additions and 1709 deletions

View file

@ -1,5 +1,5 @@
import { Scope } from 'Common/Enums';
import { doc, keyScope, leftPanelDisabled, SettingsGet } from 'Common/Globals';
import { keyScope, leftPanelDisabled, SettingsGet, elementById } from 'Common/Globals';
import { addObservablesTo } from 'Common/Utils';
import { ThemeStore } from 'Stores/Theme';
@ -25,7 +25,7 @@ AppUserStore.focusedState.subscribe(value => {
break;
}
['FolderList','MessageList','MessageView'].forEach(name => {
let dom = doc.querySelector('.RL-Mail'+name);
let dom = elementById('V-Mail'+name);
dom && dom.classList.toggle('focused', name === value);
});
});