@everymatrix/general-navigation-bar 1.16.2 → 1.17.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-navigation-bar",
3
- "version": "1.16.2",
3
+ "version": "1.17.1",
4
4
  "main": "dist/general-navigation-bar.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "d6dc249addf978ca75bc9b3d5f1a80c33649638a"
38
+ "gitHead": "f2155458138e80c61c668cc7e75c645d6f16709c"
39
39
  }
@@ -30,6 +30,7 @@
30
30
  let customStylingContainer:HTMLElement;
31
31
  let imageIconUrl:string = '';
32
32
  let eventInterpreted:object = {};
33
+ let mobileLandscapeView:boolean;
33
34
 
34
35
  const setTranslationUrl = ():void => {
35
36
  let url:string = translationurl;
@@ -84,6 +85,8 @@
84
85
  }
85
86
 
86
87
  const getMobileBottomMenu = ():void => {
88
+ mobileLandscapeView = isMobile && window.innerHeight / window.innerWidth > 1;
89
+
87
90
  isLoading = true;
88
91
  let device = getDevice(userAgent);
89
92
  let url:URL = new URL(`${cmsendpoint}/${lang}/bottom-mobile-menu?env=${env}`);
@@ -208,7 +211,7 @@
208
211
  </script>
209
212
 
210
213
  {#if !isLoading && isMobile && showNavigation}
211
- <div class="NavigationWrapper" bind:this={customStylingContainer}>
214
+ <div class="NavigationWrapper {mobileLandscapeView ? '' : 'NavigationWrapperLandScape'}" bind:this={customStylingContainer}>
212
215
  <div class="NavigationPanel">
213
216
  {#if !navigationBarSimple}
214
217
  <div class="NavigationWindow {navigationWindowOpened ? 'NavigationWindowOpened' : ''}">