@snapdragonsnursery/react-components 1.1.8 → 1.1.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapdragonsnursery/react-components",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -98,14 +98,22 @@ const ChildSearchModal = ({
98
98
  if (isOpen && modalRef.current) {
99
99
  const modal = modalRef.current;
100
100
  const rect = modal.getBoundingClientRect();
101
+ const viewportHeight = window.innerHeight;
102
+ const expectedHeight = viewportHeight * 0.9;
103
+ const expectedContentHeight = expectedHeight - 300;
104
+
101
105
  console.log('🔍 Modal Debug:', {
102
106
  modalHeight: rect.height,
103
107
  modalTop: rect.top,
104
108
  modalBottom: rect.bottom,
105
- viewportHeight: window.innerHeight,
109
+ viewportHeight: viewportHeight,
110
+ expectedHeight: expectedHeight,
111
+ expectedContentHeight: expectedContentHeight,
106
112
  childrenCount: children.length,
107
113
  loading,
108
- error
114
+ error,
115
+ modalStyle: modal.style,
116
+ modalComputedStyle: window.getComputedStyle(modal)
109
117
  });
110
118
 
111
119
  // Check if modal is overflowing
@@ -342,12 +350,13 @@ const ChildSearchModal = ({
342
350
  <div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4 overflow-hidden">
343
351
  <div
344
352
  ref={modalRef}
345
- className={`bg-white dark:bg-gray-800 rounded-lg shadow-xl max-w-4xl w-full h-[90vh] flex flex-col overflow-hidden ${className}`}
353
+ className={`bg-white dark:bg-gray-800 rounded-lg shadow-xl max-w-4xl w-full flex flex-col overflow-hidden ${className}`}
346
354
  style={{
347
355
  maxHeight: '90vh',
348
356
  height: '90vh',
349
357
  display: 'flex',
350
- flexDirection: 'column'
358
+ flexDirection: 'column',
359
+ position: 'relative'
351
360
  }}
352
361
  >
353
362
  {/* Header */}
@@ -648,10 +657,11 @@ const ChildSearchModal = ({
648
657
  <div
649
658
  className="overflow-hidden"
650
659
  style={{
651
- height: 'calc(90vh - 200px)',
652
- maxHeight: 'calc(90vh - 200px)',
660
+ height: 'calc(90vh - 300px)',
661
+ maxHeight: 'calc(90vh - 300px)',
653
662
  overflow: 'hidden',
654
- flex: 'none'
663
+ flex: 'none',
664
+ position: 'relative'
655
665
  }}
656
666
  ref={(el) => {
657
667
  if (el) {