Skip to content

Commit 4229bda

Browse files
committed
fix: adjust left and right panel layout to properly constrain height
1 parent 726b76e commit 4229bda

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

src/components/DatasetPageCard.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ const DatasetPageCard: React.FC<DatasetPageCardProps> = ({
9898
<Chip
9999
label={`${doc.value.subj.length} subjects`}
100100
size="small"
101-
sx={{ backgroundColor: Colors.purple, color: Colors.white }}
101+
sx={{
102+
backgroundColor: Colors.darkOrange,
103+
color: Colors.white,
104+
}}
102105
/>
103106
)}
104107
{doc.value.modality &&
@@ -108,7 +111,7 @@ const DatasetPageCard: React.FC<DatasetPageCardProps> = ({
108111
label={mod}
109112
size="small"
110113
sx={{
111-
backgroundColor: Colors.purpleGrey,
114+
backgroundColor: Colors.purple,
112115
color: Colors.white,
113116
}}
114117
/>

src/pages/DatasetDetailPage.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@ const DatasetDetailPage: React.FC = () => {
712712
gap: 2,
713713
alignItems: "flex-start",
714714
marginTop: 2,
715-
height: "700px", // fixed height container
716-
border: "2px solid red",
715+
height: "960px", // fixed height container
716+
// border: "2px solid red",
717717
}}
718718
>
719719
{/* ✅ JSON Viewer (left panel) */}
@@ -725,7 +725,7 @@ const DatasetDetailPage: React.FC = () => {
725725
borderRadius: "8px",
726726
overflowX: "auto",
727727
height: "100%",
728-
border: "2px solid yellow",
728+
// border: "2px solid yellow",
729729
}}
730730
>
731731
<ReactJson
@@ -748,16 +748,18 @@ const DatasetDetailPage: React.FC = () => {
748748
flexDirection: "column",
749749
gap: 2,
750750
height: "100%",
751-
border: "2px solid green",
751+
// border: "2px solid green",
752752
}}
753753
>
754754
<Box
755755
sx={{
756-
backgroundColor: "#cdddf6",
756+
backgroundColor: Colors.lightBlue,
757757
padding: 2,
758758
borderRadius: "8px",
759-
border: "2px solid orange",
759+
// marginTop: 4,
760+
// border: "2px solid orange",
760761
flex: 1,
762+
// overflowY: "auto",
761763
}}
762764
>
763765
{/* ✅ Collapsible header */}
@@ -861,9 +863,10 @@ const DatasetDetailPage: React.FC = () => {
861863
backgroundColor: "#eaeaea",
862864
padding: 2,
863865
borderRadius: "8px",
864-
marginTop: 2,
866+
// marginTop: 4,
865867
flex: 1,
866-
border: "2px solid blue",
868+
// overflowY: "auto",
869+
// border: "2px solid blue",
867870
}}
868871
>
869872
{/* ✅ Header with toggle */}

0 commit comments

Comments
 (0)