diff --git a/src/components/ModelingSidebar/ModelingPanes/FeatureTreePane.tsx b/src/components/ModelingSidebar/ModelingPanes/FeatureTreePane.tsx index d2216fe94..dfa19e430 100644 --- a/src/components/ModelingSidebar/ModelingPanes/FeatureTreePane.tsx +++ b/src/components/ModelingSidebar/ModelingPanes/FeatureTreePane.tsx @@ -242,6 +242,7 @@ const OperationItemWrapper = ({ visibilityToggle, menuItems, errors, + customSuffix, className, selectable = true, ...props @@ -249,6 +250,7 @@ const OperationItemWrapper = ({ icon: CustomIconName name: string visibilityToggle?: VisibilityToggleProps + customSuffix?: JSX.Element menuItems?: ComponentProps['items'] errors?: Diagnostic[] selectable?: boolean @@ -265,7 +267,10 @@ const OperationItemWrapper = ({ className={`reset flex-1 flex items-center gap-2 text-left text-base ${selectable ? 'border-transparent dark:border-transparent' : 'border-none cursor-default'} ${className}`} > - {name} +
+
{name}
+ {customSuffix && customSuffix} +
{errors && errors.length > 0 && ( has error @@ -537,9 +542,30 @@ const DefaultPlanes = () => { if (!defaultPlanes) return null const planes = [ - { name: 'Front plane', id: defaultPlanes.xz, key: 'xz' }, - { name: 'Top plane', id: defaultPlanes.xy, key: 'xy' }, - { name: 'Side plane', id: defaultPlanes.yz, key: 'yz' }, + { + name: 'Front plane', + id: defaultPlanes.xz, + key: 'xz', + customSuffix: ( +
XZ
+ ), + }, + { + name: 'Top plane', + id: defaultPlanes.xy, + key: 'xy', + customSuffix: ( +
XY
+ ), + }, + { + name: 'Side plane', + id: defaultPlanes.yz, + key: 'yz', + customSuffix: ( +
YZ
+ ), + }, ] as const return ( @@ -547,6 +573,7 @@ const DefaultPlanes = () => { {planes.map((plane) => (