@revenexx/cover 0.2.20 → 0.2.22

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.
@@ -3,7 +3,20 @@ import SearchFacets from "../search/filter/SearchFacets.vue";
3
3
  import type { ProductListing } from "../../composables/useProductListing";
4
4
 
5
5
  /**
6
- * Desktop-only sticky facet rail wrapping the shared SearchFacets panel.
6
+ * Desktop facet rail wrapping the shared SearchFacets panel.
7
+ *
8
+ * IT SCROLLS WITH THE PAGE. It used to stick under the header, which sounds
9
+ * helpful and is not: a `position: sticky` box does not scroll its own content,
10
+ * so every filter below the fold became unreachable on a catalogue with more
11
+ * than a screenful of facets. Bounding the rail and giving it `overflow-y-auto`
12
+ * fixed the reachability and bought a second, nested scrollbar next to the
13
+ * page's own — two bars racing each other on one screen, and a column that
14
+ * refuses to move while everything beside it does.
15
+ *
16
+ * A filter column that simply scrolls away with the results is the plain
17
+ * behaviour people expect, and it needs no height maths, no inner scroller and
18
+ * no dvh guard. The mobile drawer is a different story and keeps its own
19
+ * scroll: it is a full-height overlay, not a column on a page.
7
20
  */
8
21
  const props = defineProps<{
9
22
  listing: ProductListing;
@@ -13,7 +26,7 @@ const listing = props.listing;
13
26
  </script>
14
27
 
15
28
  <template>
16
- <div class="hidden lg:block w-60 shrink-0 sticky top-(--ui-header-height) pt-1">
29
+ <div class="hidden lg:block w-60 shrink-0 pt-1">
17
30
  <SearchFacets
18
31
  v-model="listing.activeFilters.value"
19
32
  v-model:price-range="listing.priceRange.value"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revenexx/cover",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
4
4
  "description": "Cover \u2014 revenexx design system for Nuxt. Distributed as a Nuxt layer: generic UI components, theming tokens and stores shared by the demo shop, custom storefronts and the Blokkli theme.",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",