From 86b6b57561e7705d0c5e1e94c2cbd18afb92e4ab Mon Sep 17 00:00:00 2001 From: TaruunMalik Date: Sun, 13 Apr 2025 10:11:52 +0000 Subject: [PATCH] steps fix --- frontend/src/Editor/Components/Steps.jsx | 128 +++++++++++++---------- 1 file changed, 73 insertions(+), 55 deletions(-) diff --git a/frontend/src/Editor/Components/Steps.jsx b/frontend/src/Editor/Components/Steps.jsx index ef245f9d74..c22760d23a 100644 --- a/frontend/src/Editor/Components/Steps.jsx +++ b/frontend/src/Editor/Components/Steps.jsx @@ -38,6 +38,11 @@ export const Steps = function Button({ properties, styles, fireEvent, setExposed '--currentStepLabel': currentStepLabel === '#1B1F24' ? 'var(--text-primary)' : currentStepLabel, }; const theme = properties.variant; + console.log(theme); + console.log(properties); + console.log(styles); + console.log(completedLabel, 'completed'); + const activeStepHandler = (id) => { const step = filteredSteps.find((item) => item.id == id); if (step) { @@ -112,70 +117,83 @@ export const Steps = function Button({ properties, styles, fireEvent, setExposed return ( isVisible && ( -
- {filteredSteps?.map((item, index) => { - const isStepDisabled = item.disabled; - return ( - - + +
+ {filteredSteps?.map((item, index) => { + const isStepDisabled = item.disabled; + return ( + + stepsSelectable && !isDisabled && !isStepDisabled && activeStepHandler(item.id)} - style={{ - ...dynamicStyle, - overflow: 'visible', - minWidth: 0, - flex: 1, - }} - > -
stepsSelectable && !isDisabled && !isStepDisabled && activeStepHandler(item.id)} style={{ - whiteSpace: 'nowrap', - overflow: 'hidden', - textOverflow: 'ellipsis', - maxWidth: '100%', - paddingLeft: index >= 0 ? 5 : 0, - paddingRight: index < filteredSteps.length - 1 ? 5 : 0, + ...dynamicStyle, + overflow: 'visible', + minWidth: 0, + flex: 1, }} > - {theme == 'titles' && item.name} -
-
- - ); - })} -
+
= 0 ? 5 : 0, + paddingRight: index < filteredSteps.length - 1 ? 5 : 0, + }} + > + {theme == 'titles' && item.name} +
+ +
+ ); + })} +
+ ) ); };