ferst-core 0.7.13 → 0.8.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.
@@ -94,6 +94,7 @@ collections:
94
94
  - { name: primaryLogoDark, label: Header logo (dark), widget: image, required: false }
95
95
  - { name: secondaryLogoLight, label: Footer logo (light), widget: image, required: false }
96
96
  - { name: secondaryLogoDark, label: Footer logo (dark), widget: image, required: false }
97
+ - { name: favicon, label: Browser icon, widget: image, required: false, hint: "A square image (PNG or SVG), at least 48 x 48. Leave blank to use the header logo if it's square, or the site's initial in its brand colour." }
97
98
 
98
99
  - name: navbar
99
100
  label: Navigation
@@ -1046,7 +1046,7 @@ const primaryNavLongestMatch = Math.max(-1, ...primaryNavMatchLengths);
1046
1046
  };
1047
1047
  siteHeader.addEventListener('transitionend', settled);
1048
1048
  siteHeader.addEventListener('transitioncancel', settled);
1049
- syncHeaderHeight();
1049
+ // The first value is published below, once the crowding check has settled the layout.
1050
1050
  }
1051
1051
 
1052
1052
  // Crowding (#11): on desktop the menu is centred on the header. When the site name (or
@@ -1075,6 +1075,9 @@ const primaryNavLongestMatch = Math.max(-1, ...primaryNavMatchLengths);
1075
1075
  desktop.addEventListener('change', queue);
1076
1076
  document.fonts?.ready.then(queue);
1077
1077
  fitCheck();
1078
+ // Only now that the menu has its row (or not) is the header its real height: publishing
1079
+ // it before the check told the opener the one-row height until the next frame.
1080
+ syncHeaderHeight();
1078
1081
  }
1079
1082
 
1080
1083
  function openMega() {