@revenexx/cover 0.2.21 → 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,22 +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
7
  *
8
- * The rail STICKS on purpose — the filters stay reachable while the results
9
- * scroll past them. What it also needs, and did not have, is a ceiling and a
10
- * scrollbar of its own: a `position: sticky` box does not scroll its content,
11
- * so once the facet list grew taller than the viewport everything below the
12
- * fold became UNREACHABLE. The page scrolled, the rail stayed pinned, and the
13
- * lower groups could not be seen at all — on a catalogue with a couple of long
14
- * attribute facets that is most of the sidebar.
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
15
  *
16
- * The mobile drawer had this right from the start (`h-full overflow-y-auto` in
17
- * SearchFacetsDrawer); only the desktop rail was missing it.
18
- *
19
- * `100dvh` rather than `100vh` so a mobile browser's collapsing toolbar does
20
- * not leave the last filter under the chrome, and `overscroll-contain` so
21
- * reaching the end of the list does not hand the scroll to the page mid-swipe.
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.
22
20
  */
23
21
  const props = defineProps<{
24
22
  listing: ProductListing;
@@ -28,10 +26,7 @@ const listing = props.listing;
28
26
  </script>
29
27
 
30
28
  <template>
31
- <div
32
- class="hidden lg:block w-60 shrink-0 sticky top-(--ui-header-height) pt-1 pb-6
33
- max-h-[calc(100dvh-var(--ui-header-height))] overflow-y-auto overscroll-contain"
34
- >
29
+ <div class="hidden lg:block w-60 shrink-0 pt-1">
35
30
  <SearchFacets
36
31
  v-model="listing.activeFilters.value"
37
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.21",
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",