astro-accelerator 4.0.24 → 4.0.25

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,5 +1,5 @@
1
1
  {
2
- "version": "4.0.24",
2
+ "version": "4.0.25",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -660,14 +660,12 @@ nav.site-nav h2 {
660
660
  border-radius: var(--search-border-radius);
661
661
  border-radius: 0.9375rem;
662
662
  list-style-type: none;
663
- overflow-y: scroll;
664
663
  transition-property: padding, transform, visibility;
665
664
  transition-duration: var(--search-dropdown-duration);
666
665
  transition-timing-function: ease-in-out;
667
666
  visibility: hidden;
668
667
  transform: translateY(0) scaleY(0);
669
668
  z-index: 1;
670
- max-height: var(--search-dropdown-height);
671
669
  transform-origin: top;
672
670
  will-change: transform;
673
671
  }
@@ -683,8 +681,10 @@ nav.site-nav h2 {
683
681
  margin-inline-start: 0;
684
682
  }
685
683
 
686
- .site-search-results ul:not(.post-list) {
684
+ .site-search-results ul:not(.post-list):not(.result-headings) {
687
685
  margin: 0;
686
+ max-height: var(--search-dropdown-height);
687
+ overflow-y: scroll;
688
688
  }
689
689
 
690
690
  .site-search__overlay {
@@ -554,14 +554,16 @@ function initializeSearch() {
554
554
  }, 10);
555
555
  });
556
556
 
557
+ if (needles.length > numberOfResults) {
558
+ const moreLi = document.createElement('li');
559
+ moreLi.appendChild(more);
560
+ ul.appendChild(moreLi);
561
+ }
562
+
557
563
  results.innerHTML = '';
558
564
  results.appendChild(ul);
559
565
  h4 && results.appendChild(h4);
560
566
 
561
- if (needles.length > numberOfResults) {
562
- results.appendChild(more);
563
- }
564
-
565
567
  const address = window.location.href.split('?')[0];
566
568
  window.history.pushState(
567
569
  {},