codexly-ui 0.0.61 → 0.0.63

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.
@@ -5199,10 +5199,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
5199
5199
  }], ctorParameters: () => [] });
5200
5200
 
5201
5201
  const MODAL_SIZE_MAP = {
5202
- sm: 'w-full max-w-[400px]',
5203
- md: 'w-full max-w-[600px]',
5204
- lg: 'w-full max-w-[900px]',
5205
- full: 'w-screen h-screen max-w-none rounded-none',
5202
+ sm: 'w-full',
5203
+ md: 'w-full',
5204
+ lg: 'w-full',
5205
+ full: 'w-full h-screen rounded-none',
5206
5206
  };
5207
5207
  const MODAL_CONTAINER_CLASS = 'flex flex-col bg-white rounded-2xl shadow-2xl overflow-hidden';
5208
5208
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -9000,23 +9000,26 @@ class ClxModalService {
9000
9000
  afterClosed() { return _afterClosed; },
9001
9001
  };
9002
9002
  const extraClasses = Array.isArray(panelClass) ? panelClass : [panelClass];
9003
+ const sizeMaxWidth = {
9004
+ sm: '400px',
9005
+ md: '600px',
9006
+ lg: '900px',
9007
+ full: '100vw',
9008
+ };
9009
+ const maxWidth = sizeMaxWidth[size] ?? '600px';
9003
9010
  const overlayRef = this._overlay.create(new OverlayConfig({
9004
9011
  hasBackdrop,
9005
9012
  backdropClass: 'clx-modal-backdrop',
9006
9013
  panelClass: extraClasses,
9007
9014
  scrollStrategy: this._overlay.scrollStrategies.block(),
9008
9015
  positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
9016
+ width: `min(calc(100vw - 2rem), ${maxWidth})`,
9017
+ maxWidth: maxWidth,
9018
+ maxHeight: '90vh',
9009
9019
  }));
9010
9020
  Object.assign(overlayRef.overlayElement.style, {
9011
- position: 'fixed',
9012
- inset: '0',
9013
- width: '100vw',
9014
- height: '100vh',
9015
9021
  display: 'flex',
9016
- alignItems: 'center',
9017
- justifyContent: 'center',
9018
- padding: '1rem',
9019
- boxSizing: 'border-box',
9022
+ flexDirection: 'column',
9020
9023
  });
9021
9024
  const innerInjector = Injector.create({
9022
9025
  parent: this._injector,