@hanzo/ui 3.0.12 → 3.0.14
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.
|
@@ -46,7 +46,7 @@ const ScreenfulComponent: React.FC<{
|
|
|
46
46
|
// p&m-modifiers
|
|
47
47
|
// ]
|
|
48
48
|
const cwclx = [
|
|
49
|
-
'
|
|
49
|
+
'xl:mx-auto max-w-screen-xl overflow-y-hidden ',
|
|
50
50
|
// desktop header: 80px / pt-20
|
|
51
51
|
// mobile header: 44px / pt-11
|
|
52
52
|
narrowGutters ?
|
|
@@ -68,13 +68,13 @@ const ScreenfulComponent: React.FC<{
|
|
|
68
68
|
{hasBannerVideo() && (
|
|
69
69
|
<Video
|
|
70
70
|
block={b.banner! as VideoBlock}
|
|
71
|
-
className='
|
|
71
|
+
className='absolute top-0 left-0 bottom-0 right-0'
|
|
72
72
|
initialInView={initialInView}
|
|
73
73
|
/>
|
|
74
74
|
)}
|
|
75
75
|
<div className={cn(
|
|
76
76
|
...cwclx,
|
|
77
|
-
snapTile ? 'absolute
|
|
77
|
+
snapTile ? 'absolute left-0 right-0 top-0 bottom-0 ' : 'flex min-h-screen w-full',
|
|
78
78
|
contentClx,
|
|
79
79
|
vertCenter ? '!py-0 self-center' : ''
|
|
80
80
|
)}
|
package/package.json
CHANGED
package/primitives/drawer.tsx
CHANGED
|
@@ -26,7 +26,7 @@ const DrawerOverlay = React.forwardRef<
|
|
|
26
26
|
>(({ className, ...props }, ref) => (
|
|
27
27
|
<DrawerPrimitive.Overlay
|
|
28
28
|
ref={ref}
|
|
29
|
-
className={cn('fixed inset-0
|
|
29
|
+
className={cn('fixed inset-0 bg-[#ffaaaa] opacity-20', className)}
|
|
30
30
|
{...props}
|
|
31
31
|
/>
|
|
32
32
|
))
|
|
@@ -37,11 +37,12 @@ const DrawerContent = React.forwardRef<
|
|
|
37
37
|
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
|
|
38
38
|
>(({ className, children, ...props }, ref) => (
|
|
39
39
|
<DrawerPortal>
|
|
40
|
+
{/* If no or same z index, overlay should precede content */}
|
|
40
41
|
<DrawerOverlay />
|
|
41
42
|
<DrawerPrimitive.Content
|
|
42
43
|
ref={ref}
|
|
43
|
-
className={cn(
|
|
44
|
-
'
|
|
44
|
+
className={cn('fixed left-0 right-0 bottom-0 ',
|
|
45
|
+
'mt-24 flex h-[80%] flex-col rounded-t-[10px] border bg-background',
|
|
45
46
|
className
|
|
46
47
|
)}
|
|
47
48
|
{...props}
|