mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Make layout fully responsive using matchMedia('(max-width: 799px)')
This commit is contained in:
parent
1dbd9bda0c
commit
e1833ae032
64 changed files with 239 additions and 434 deletions
|
|
@ -49,11 +49,10 @@ export const SettingsUserStore = new class {
|
|||
|
||||
self.init();
|
||||
|
||||
self.usePreviewPane = koComputable(() => Layout.NoPreview !== self.layout() && !ThemeStore.isMobile());
|
||||
self.usePreviewPane = koComputable(() => self.layout() && !ThemeStore.isMobile());
|
||||
|
||||
const toggleLayout = () => {
|
||||
const value = ThemeStore.isMobile() ? Layout.NoPreview : self.layout();
|
||||
$htmlCL.toggle('rl-no-preview-pane', Layout.NoPreview === value);
|
||||
const value = ThemeStore.isMobile() ? 0 : self.layout();
|
||||
$htmlCL.toggle('rl-side-preview-pane', Layout.SidePreview === value);
|
||||
$htmlCL.toggle('rl-bottom-preview-pane', Layout.BottomPreview === value);
|
||||
fireEvent('rl-layout', value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue