| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,7 +54,7 @@ | |||
| 54 | 54 | */ | |
| 55 | 55 | .pl-c-pattern-info__panel { | |
| 56 | 56 | padding: .5rem; | |
| 57 | - flex-shrink: 1; | ||
| 57 | + flex-shrink: 0; // prevent panel from collapsing in height (especially on smaller screens like iPhone) | ||
| 58 | 58 | display: flex; | |
| 59 | 59 | flex-direction: column; | |
| 60 | 60 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,6 +67,7 @@ | |||
| 67 | 67 | ||
| 68 | 68 | .pl-c-tabs__header { | |
| 69 | 69 | position: sticky; | |
| 70 | + z-index: 1; // fix for Safari for iOS sticky header appearing to be below the scrollable content | ||
| 70 | 71 | top: 0px; | |
| 71 | 72 | border-top: 1px solid #ddd; | |
| 72 | 73 | margin-left: calc(-0.5rem - 1px); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -293,6 +293,14 @@ class Nav extends BaseComponent { | |||
| 293 | 293 | this.navAccordionPanels.forEach(panel => { | |
| 294 | 294 | panel.classList.remove('pl-is-active'); | |
| 295 | 295 | }); | |
| 296 | + } else if (this.layoutMode === 'vertical' && window.innerWidth <= 670) { | ||
| 297 | + this.navContainer.classList.remove('pl-is-active'); | ||
| 298 | + this.navAccordionTriggers.forEach(trigger => { | ||
| 299 | + trigger.classList.remove('pl-is-active'); | ||
| 300 | + }); | ||
| 301 | + this.navAccordionPanels.forEach(panel => { | ||
| 302 | + panel.classList.remove('pl-is-active'); | ||
| 303 | + }); | ||
| 296 | 304 | } else { | |
| 297 | 305 | this.navContainer.classList.remove('pl-is-active'); | |
| 298 | 306 | } | |
@@ -331,6 +339,7 @@ class Nav extends BaseComponent { | |||
| 331 | 339 | ) | |
| 332 | 340 | ) { | |
| 333 | 341 | activeLink.parentNode.classList.add('pl-is-active'); | |
| 342 | + this.previousActiveLinks.push(activeLink.parentNode); | ||
| 334 | 343 | } | |
| 335 | 344 | ||
| 336 | 345 | const parentDropdown = activeLink.closest('.pl-js-acc-panel'); | |
@@ -346,8 +355,8 @@ class Nav extends BaseComponent { | |||
| 346 | 355 | ) && | |
| 347 | 356 | shouldAutoOpenNav | |
| 348 | 357 | ) { | |
| 349 | - this.previousActiveLinks.push(parentDropdown.previousSibling); | ||
| 350 | 358 | parentDropdown.previousSibling.classList.add('pl-is-active'); | |
| 359 | + this.previousActiveLinks.push(parentDropdown.previousSibling); | ||
| 351 | 360 | parentDropdownTrigger = parentDropdown.previousSibling.querySelector( | |
| 352 | 361 | '.pl-js-acc-handle' | |
| 353 | 362 | ); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -66,6 +66,7 @@ class Header extends BaseLitComponent { | |||
| 66 | 66 | if ( | |
| 67 | 67 | e.target !== this.navToggle && | |
| 68 | 68 | !e.target.closest('.pl-js-nav-container') && | |
| 69 | + !e.target.closest('pl-toggle-layout') && | ||
| 69 | 70 | this.isActive === true | |
| 70 | 71 | ) { | |
| 71 | 72 | this.isActive = false; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments