@snapdragonsnursery/react-components 1.1.3 → 1.1.5

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.3",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -314,10 +314,10 @@ const ChildSearchModal = ({
314
314
  if (!isOpen) return null;
315
315
 
316
316
  return (
317
- <div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4">
317
+ <div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4 overflow-hidden">
318
318
  <div
319
319
  ref={modalRef}
320
- className={`bg-white dark:bg-gray-800 rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] flex flex-col ${className}`}
320
+ className={`bg-white dark:bg-gray-800 rounded-lg shadow-xl max-w-4xl w-full h-[90vh] flex flex-col overflow-hidden ${className}`}
321
321
  >
322
322
  {/* Header */}
323
323
  <div className="flex items-center justify-between p-6 border-b border-gray-200 dark:border-gray-700">
@@ -423,7 +423,7 @@ const ChildSearchModal = ({
423
423
 
424
424
  {/* Advanced Filters */}
425
425
  {isAdvancedFiltersOpen && (
426
- <div className="mt-4 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg">
426
+ <div className="mt-4 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg max-h-64 overflow-y-auto">
427
427
  <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
428
428
  {/* Status Filter */}
429
429
  <div>
@@ -614,7 +614,7 @@ const ChildSearchModal = ({
614
614
  </div>
615
615
 
616
616
  {/* Content */}
617
- <div className="flex-1 overflow-hidden">
617
+ <div className="flex-1 overflow-hidden min-h-0">
618
618
  {loading && (
619
619
  <div className="flex items-center justify-center p-8">
620
620
  <div className="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"></div>
@@ -630,7 +630,7 @@ const ChildSearchModal = ({
630
630
  )}
631
631
 
632
632
  {!loading && !error && (
633
- <div className="overflow-y-auto max-h-96">
633
+ <div className="overflow-y-auto h-full max-h-full">
634
634
  {children.length === 0 ? (
635
635
  <div className="p-6 text-center text-gray-500 dark:text-gray-400">
636
636
  {debouncedSearchTerm