@bjj/nuxt-layer-shadcn-ui 0.12.6 → 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 />
@@ -1,5 +1,6 @@
1
1
  import type { ScrollAreaRootProps } from 'reka-ui'
2
2
 
3
3
  export interface ScrollAreaProps extends /* @vue-ignore */ ScrollAreaRootProps {
4
+ class?: ClassValue
4
5
  fadeMask?: boolean
5
6
  }
@@ -652,7 +652,7 @@ async function onDrop (e: DragEvent) {
652
652
  >
653
653
  <Icon
654
654
  :name="iconName"
655
- class="size-5"
655
+ class="size-6"
656
656
  />
657
657
  <span>{{ triggerLabel }}</span>
658
658
  </button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bjj/nuxt-layer-shadcn-ui",
3
- "version": "0.12.6",
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": "1e5b160073c61a6301d43cf82a69d6c2cf80f17f"
45
+ "gitHead": "1b3678f9d4318654e6d515b2e21245717ca6b0d1"
46
46
  }