codexly-ui 0.0.51 → 0.0.53

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.
@@ -13908,6 +13908,8 @@ class ClxDrawerService {
13908
13908
  hasBackdrop,
13909
13909
  backdropClass: 'clx-modal-backdrop',
13910
13910
  panelClass: extraClasses,
13911
+ width: DRAWER_WIDTH_MAP[size],
13912
+ height: '100vh',
13911
13913
  scrollStrategy: this._overlay.scrollStrategies.block(),
13912
13914
  positionStrategy: this._overlay.position().global().right('0').top('0'),
13913
13915
  }));
@@ -13922,16 +13924,11 @@ class ClxDrawerService {
13922
13924
  // Attach wrapper via ComponentPortal — CDK creates backdrop on attach()
13923
13925
  const wrapperPortal = new ComponentPortal(ClxModalWrapperComponent, null, innerInjector);
13924
13926
  const wrapperRef = overlayRef.attach(wrapperPortal);
13925
- // Apply drawer-specific styles AFTER attach() so CDK doesn't overwrite them
13926
- Object.assign(overlayRef.overlayElement.style, {
13927
- height: '100vh',
13928
- pointerEvents: 'none',
13929
- });
13930
- // Re-enable pointer events on the drawer panel itself
13931
- // height:100% needed so clx-drawer h-full works (wrapper is display:contents)
13932
- const wrapperEl = wrapperRef.location.nativeElement;
13933
- wrapperEl.style.pointerEvents = 'auto';
13934
- wrapperEl.style.height = '100%';
13927
+ // El pane ya tiene width/height del OverlayConfig.
13928
+ // Solo desactivamos pointer-events en el overlay element (no en el pane)
13929
+ // para que el click-through funcione cuando no hay backdrop.
13930
+ overlayRef.overlayElement.style.pointerEvents = 'none';
13931
+ wrapperRef.location.nativeElement.style.pointerEvents = 'auto';
13935
13932
  // Mount user component inside the wrapper via a second portal
13936
13933
  const contentPortal = new ComponentPortal(component, null, innerInjector);
13937
13934
  wrapperRef.instance.portal.set(contentPortal);