mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Improve GUI (#1014)
This commit is contained in:
parent
b3299725f6
commit
f64b63c549
16 changed files with 218 additions and 76 deletions
|
|
@ -348,6 +348,7 @@ class AbstractApp extends AbstractBoot
|
|||
|
||||
Globals.leftPanelDisabled.subscribe((bValue) => {
|
||||
Globals.$html.toggleClass('rl-left-panel-disabled', bValue);
|
||||
Globals.$html.toggleClass('rl-left-panel-enabled', !bValue);
|
||||
});
|
||||
|
||||
Globals.leftPanelType.subscribe((sValue) => {
|
||||
|
|
@ -355,6 +356,8 @@ class AbstractApp extends AbstractBoot
|
|||
Globals.$html.toggleClass('rl-left-panel-short', 'short' === sValue);
|
||||
});
|
||||
|
||||
Globals.leftPanelDisabled.valueHasMutated();
|
||||
|
||||
ssm.ready();
|
||||
|
||||
require('Stores/Language').populate();
|
||||
|
|
|
|||
|
|
@ -1072,6 +1072,10 @@ class AppUser extends AbstractApp
|
|||
fSetWidth = (iWidth) => {
|
||||
if (iWidth)
|
||||
{
|
||||
Globals.leftPanelWidth(iWidth);
|
||||
|
||||
Globals.$html.removeClass('rl-resizer');
|
||||
|
||||
oLeft.css({
|
||||
width: '' + iWidth + 'px'
|
||||
});
|
||||
|
|
@ -1095,6 +1099,7 @@ class AppUser extends AbstractApp
|
|||
fSetWidth(iWidth > iMinWidth ? iWidth : iMinWidth);
|
||||
}
|
||||
},
|
||||
|
||||
fResizeCreateFunction = (oEvent) => {
|
||||
if (oEvent && oEvent.target)
|
||||
{
|
||||
|
|
@ -1120,9 +1125,18 @@ class AppUser extends AbstractApp
|
|||
{
|
||||
Local.set(sClientSideKeyName, oObject.size.width);
|
||||
|
||||
Globals.leftPanelWidth(oObject.size.width);
|
||||
|
||||
oRight.css({
|
||||
left: '' + oObject.size.width + 'px'
|
||||
});
|
||||
|
||||
oLeft.css({
|
||||
position: '',
|
||||
top: '',
|
||||
left: '',
|
||||
height: ''
|
||||
});
|
||||
}
|
||||
}
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue