astro-accelerator 5.9.11 → 5.9.12

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": "5.9.11",
2
+ "version": "5.9.12",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -867,6 +867,7 @@ header .result-wrapper {
867
867
  }
868
868
 
869
869
  .site-search-results .show-more {
870
+ margin-block-start: 1rem;
870
871
  display: inline-block;
871
872
  font-size: 1.2rem;
872
873
  border-radius: 100px;
@@ -169,36 +169,6 @@ function initializeSearch() {
169
169
 
170
170
  function openDropdown() {
171
171
  siteSearchElement.classList.add('is-active');
172
-
173
- requestAnimationFrame(() => {
174
- const dropdownHeightPercentage = parseFloat(
175
- getComputedStyle(siteSearchWrapper).getPropertyValue(
176
- '--search-dropdown-height'
177
- )
178
- );
179
- // Convert vh to pixels
180
- const dropdownHeight =
181
- window.innerHeight * (dropdownHeightPercentage / 100) + 32;
182
- const siteSearchElementRect =
183
- siteSearchElement.getBoundingClientRect();
184
- const offsetFromBottomToElement =
185
- window.innerHeight - siteSearchElementRect.bottom;
186
-
187
- if (offsetFromBottomToElement < dropdownHeight) {
188
- document.body.style.overflow = '';
189
-
190
- // Scroll to the siteSearchElement
191
- siteSearchElement.scrollIntoView({
192
- behavior: 'smooth',
193
- block: 'start',
194
- });
195
-
196
- // Delay the overflow to allow for smooth scrolling
197
- setTimeout(() => {
198
- document.body.style.overflow = 'hidden';
199
- }, 300);
200
- }
201
- });
202
172
  }
203
173
 
204
174
  function closeDropdown() {