From a07b145c7652e5a064fcb8225ccdd4ccfe253c44 Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Wed, 11 Mar 2026 15:03:59 -0500 Subject: [PATCH] header fix --- src/components/ScopeCard.tsx | 25 ++++++++-------- src/components/SubScopeCard.tsx | 29 ++++++++++++++----- .../UnassignedItemsSection.tsx | 8 ++--- 3 files changed, 37 insertions(+), 25 deletions(-) diff --git a/src/components/ScopeCard.tsx b/src/components/ScopeCard.tsx index fbf4fca..4b888fa 100644 --- a/src/components/ScopeCard.tsx +++ b/src/components/ScopeCard.tsx @@ -203,8 +203,8 @@ const ScopeCard: Component = (props) => { onClick={(e) => { if (e.target === e.currentTarget) props.onClearSelection(); }} class="p-6 space-y-4 relative" > -
-
+ 0}> +
{/* Column Headers - Sticky, Square Top */} -
- {/* Scope Level Items */} - !i.subScopeId)}> +
+ {/* Scope Level Items */} + !i.subScopeId)}> {(item) => ( = (props) => { /> )} - - -
- Empty scope. Drag items here or add sub-scopes. +
-
-
-
+
+ + +
+ Empty scope. Drag items here or add sub-scopes. +
+
{/* Sub-scopes */}
diff --git a/src/components/SubScopeCard.tsx b/src/components/SubScopeCard.tsx index 43a52e6..9842870 100644 --- a/src/components/SubScopeCard.tsx +++ b/src/components/SubScopeCard.tsx @@ -164,12 +164,27 @@ const SubScopeCard: Component = (props) => {
-
-
-
{ if (e.target === e.currentTarget) props.onClearSelection(); }} - class="p-2 space-y-1.5" - > +
{ if (e.target === e.currentTarget) props.onClearSelection(); }} + class="p-2 space-y-1.5 relative" + > + {/* SubScope Column Headers */} + 0}> + + + {(item) => ( @@ -194,8 +209,6 @@ const SubScopeCard: Component = (props) => {
-
-
); diff --git a/src/components/estimate-builder/UnassignedItemsSection.tsx b/src/components/estimate-builder/UnassignedItemsSection.tsx index 4180580..475cd86 100644 --- a/src/components/estimate-builder/UnassignedItemsSection.tsx +++ b/src/components/estimate-builder/UnassignedItemsSection.tsx @@ -43,9 +43,8 @@ export const UnassignedItemsSection: Component = (p {props.unassignedItems.length} Items Pending
-
-
- {/* Sticky Column Headers for Unassigned */} +
+ {/* Sticky Column Headers for Unassigned */} -
-
+
);