@bjj/nuxt-layer-shadcn-ui 0.12.7 → 0.12.8
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.
|
@@ -42,6 +42,14 @@ watchEffect(() => {
|
|
|
42
42
|
el.setAttribute('tabindex', isOverflowing.value ? '0' : '-1')
|
|
43
43
|
})
|
|
44
44
|
|
|
45
|
+
// The viewport sizes itself with `height: 100%`, which cannot resolve against
|
|
46
|
+
// a root that only has `max-height` — the viewport would grow with its content
|
|
47
|
+
// and never scroll. Forward the root's max-height to the viewport so a
|
|
48
|
+
// `max-h-*` class on ScrollArea clamps the scroll container itself.
|
|
49
|
+
const mergedClass = computed(() =>
|
|
50
|
+
cn('*:data-[slot=scroll-area-viewport]:max-h-[inherit]', props.class),
|
|
51
|
+
)
|
|
52
|
+
|
|
45
53
|
const FADE_SIZE = '1.25rem'
|
|
46
54
|
|
|
47
55
|
const maskStyle = computed(() => {
|
|
@@ -61,6 +69,7 @@ const maskStyle = computed(() => {
|
|
|
61
69
|
<template>
|
|
62
70
|
<ShadcnScrollArea
|
|
63
71
|
ref="rootRef"
|
|
72
|
+
:class="mergedClass"
|
|
64
73
|
:style="maskStyle"
|
|
65
74
|
>
|
|
66
75
|
<slot />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bjj/nuxt-layer-shadcn-ui",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"description": "Nuxt layer providing shadcn-vue based UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"vue-i18n": "^11",
|
|
43
43
|
"vue-router": "^4 || ^5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "1b3678f9d4318654e6d515b2e21245717ca6b0d1"
|
|
46
46
|
}
|