@revenexx/cover 0.2.20 → 0.2.21
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.
|
@@ -4,6 +4,21 @@ import type { ProductListing } from "../../composables/useProductListing";
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Desktop-only sticky facet rail wrapping the shared SearchFacets panel.
|
|
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.
|
|
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.
|
|
7
22
|
*/
|
|
8
23
|
const props = defineProps<{
|
|
9
24
|
listing: ProductListing;
|
|
@@ -13,7 +28,10 @@ const listing = props.listing;
|
|
|
13
28
|
</script>
|
|
14
29
|
|
|
15
30
|
<template>
|
|
16
|
-
<div
|
|
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
|
+
>
|
|
17
35
|
<SearchFacets
|
|
18
36
|
v-model="listing.activeFilters.value"
|
|
19
37
|
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.
|
|
3
|
+
"version": "0.2.21",
|
|
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",
|