mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Changes for idea in #1150 (isSmall not active yet)
This commit is contained in:
parent
53f8abc311
commit
eb566ca9db
12 changed files with 35 additions and 21 deletions
|
|
@ -8,9 +8,6 @@ import { AbstractViewRight } from 'Knoin/AbstractViews';
|
|||
export class SettingsPaneUserView extends AbstractViewRight {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.leftPanelDisabled = leftPanelDisabled;
|
||||
this.toggleLeftPanel = toggleLeftPanel;
|
||||
}
|
||||
|
||||
onShow() {
|
||||
|
|
@ -18,8 +15,12 @@ export class SettingsPaneUserView extends AbstractViewRight {
|
|||
}
|
||||
|
||||
onBuild(dom) {
|
||||
dom.addEventListener('click', () =>
|
||||
ThemeStore.isMobile() && !event.target.closestWithin('.toggleLeft', dom) && leftPanelDisabled(true)
|
||||
);
|
||||
dom.addEventListener('click', () => {
|
||||
if (event.target.closestWithin('.toggleLeft', dom)) {
|
||||
toggleLeftPanel();
|
||||
} else {
|
||||
ThemeStore.isMobile() && leftPanelDisabled(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue