@sofidevo/astro-dynamic-header 1.0.7 → 1.0.9
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 +1 -1
- package/src/NavMenu.astro +2 -2
package/package.json
CHANGED
package/src/NavMenu.astro
CHANGED
|
@@ -64,7 +64,8 @@ const pagePathname = Astro.url.pathname;
|
|
|
64
64
|
const rect = subsubmenu.getBoundingClientRect();
|
|
65
65
|
|
|
66
66
|
if (rect.right > viewportWidth) {
|
|
67
|
-
(subsubmenu as HTMLElement).style.left = "-
|
|
67
|
+
(subsubmenu as HTMLElement).style.left = "-200%";
|
|
68
|
+
(subsubmenu as HTMLElement).style.right = "auto";
|
|
68
69
|
const leftRect = subsubmenu.getBoundingClientRect();
|
|
69
70
|
|
|
70
71
|
if (leftRect.left < 0) {
|
|
@@ -340,7 +341,6 @@ const pagePathname = Astro.url.pathname;
|
|
|
340
341
|
.submenu li:hover > .subsubmenu {
|
|
341
342
|
opacity: 1;
|
|
342
343
|
pointer-events: all;
|
|
343
|
-
right: 0;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
.submenu li:hover > .subsubmenu::before {
|