From cb345be5a770df27913a7664674827e0c9464b07 Mon Sep 17 00:00:00 2001 From: t-curiekim <105448774+t-curiekim@users.noreply.github.com> Date: Wed, 20 Jul 2022 09:32:32 -0700 Subject: [PATCH] split feature details into three columns (#491) Split the feature details into three columns to prevent more scrolling --- ui/src/pages/feature/featureDetails.tsx | 38 ++++++++++++++----------- ui/src/site.css | 7 +++++ 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/ui/src/pages/feature/featureDetails.tsx b/ui/src/pages/feature/featureDetails.tsx index 4d3f0ecf3..a363df036 100644 --- a/ui/src/pages/feature/featureDetails.tsx +++ b/ui/src/pages/feature/featureDetails.tsx @@ -23,11 +23,13 @@ function FeatureKey(props: { feature: Feature }) { Key -

Full Name: { keys[0].fullName }

-

Key Column: { keys[0].keyColumn }

-

Description: { keys[0].description }

-

Key Column Alias: { keys[0].keyColumnAlias }

-

Key Column Type: { keys[0].keyColumnType }

+
+

Full Name: { keys[0].fullName }

+

Key Column: { keys[0].keyColumn }

+

Description: { keys[0].description }

+

Key Column Alias: { keys[0].keyColumnAlias }

+

Key Column Type: { keys[0].keyColumnType }

+
} @@ -41,10 +43,12 @@ function FeatureType(props: { feature: Feature }) { Type -

Dimension Type: { type.dimensionType }

-

Tensor Category: { type.tensorCategory }

-

Type: { type.type }

-

Value Type: { type.valType }

+
+

Dimension Type: { type.dimensionType }

+

Tensor Category: { type.tensorCategory }

+

Type: { type.type }

+

Value Type: { type.valType }

+
} @@ -58,13 +62,15 @@ function FeatureTransformation(props: { feature: Feature }) { Transformation - { transformation.transformExpr &&

Expression: { transformation.transformExpr }

} - { transformation.filter &&

Filter: { transformation.filter }

} - { transformation.aggFunc &&

Aggregation: { transformation.aggFunc }

} - { transformation.limit &&

Limit: { transformation.limit }

} - { transformation.groupBy &&

Group By: { transformation.groupBy }

} - { transformation.window &&

Window: { transformation.window }

} - { transformation.defExpr &&

Expression: { transformation.defExpr }

} +
+ { transformation.transformExpr &&

Expression: { transformation.transformExpr }

} + { transformation.filter &&

Filter: { transformation.filter }

} + { transformation.aggFunc &&

Aggregation: { transformation.aggFunc }

} + { transformation.limit &&

Limit: { transformation.limit }

} + { transformation.groupBy &&

Group By: { transformation.groupBy }

} + { transformation.window &&

Window: { transformation.window }

} + { transformation.defExpr &&

Expression: { transformation.defExpr }

} +
} diff --git a/ui/src/site.css b/ui/src/site.css index ef24f0420..02401e3bc 100644 --- a/ui/src/site.css +++ b/ui/src/site.css @@ -50,3 +50,10 @@ padding: 4px 12px 7px; } +.feature-container { + column-count: 3; +} + +.feature-container p { + break-inside: avoid-column; +} \ No newline at end of file