barsa-novin-ray-core 2.3.69 → 2.3.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4965,7 +4965,7 @@ class ApplicationCtrlrService {
4965
4965
  this._selectedSystemNavUi$ = new BehaviorSubject(null);
4966
4966
  this._selectedCommandId$ = new BehaviorSubject({});
4967
4967
  this._isCommandGroupsSelected$ = new BehaviorSubject({});
4968
- this._log = inject(LogService);
4968
+ this._isMobile = getDeviceIsMobile();
4969
4969
  this._document = inject(DOCUMENT);
4970
4970
  this._router = inject(Router);
4971
4971
  }
@@ -5167,7 +5167,7 @@ class ApplicationCtrlrService {
5167
5167
  this._addSystemUi(context._systemsUi);
5168
5168
  this._customApplicationMenuBodyUi = appMenuBodyUi;
5169
5169
  this._customApplicationMenuBodyUi.on({
5170
- HideMenu: () => this._document?.body?.click()
5170
+ HideMenu: () => !this._isMobile && this.deviceSize !== 's' && this._document?.body?.click()
5171
5171
  });
5172
5172
  }
5173
5173
  _appMenuBodyUi_itemsChanged(items) {
@@ -5483,6 +5483,7 @@ class PortalService {
5483
5483
  }
5484
5484
  _setDeviceSize() {
5485
5485
  const deviceSize = this._initalizeDeviceSize();
5486
+ this._applicationCtrlrService.deviceSize = deviceSize;
5486
5487
  this._deviceSizeSource.next(deviceSize);
5487
5488
  }
5488
5489
  _initalizeDeviceSize() {