diff --git a/frontend/src/container/NewWidget/RightContainer/RightContainer.styles.scss b/frontend/src/container/NewWidget/RightContainer/RightContainer.styles.scss index 766d9c1537..2ec6ef059c 100644 --- a/frontend/src/container/NewWidget/RightContainer/RightContainer.styles.scss +++ b/frontend/src/container/NewWidget/RightContainer/RightContainer.styles.scss @@ -101,6 +101,7 @@ } .panel-type-select { + width: 100%; .ant-select-selector { display: flex; height: 32px; diff --git a/frontend/src/container/NewWidget/RightContainer/index.tsx b/frontend/src/container/NewWidget/RightContainer/index.tsx index 68d1d9ff83..0ef37b569e 100644 --- a/frontend/src/container/NewWidget/RightContainer/index.tsx +++ b/frontend/src/container/NewWidget/RightContainer/index.tsx @@ -37,6 +37,7 @@ import { Link, Pencil, Plus, + SlidersHorizontal, Spline, SquareArrowOutUpRight, } from 'lucide-react'; @@ -184,11 +185,10 @@ function RightContainer({ })); }, [dashboardVariables]); - const isAxisSectionVisible = useMemo( - () => - allowYAxisUnit || allowDecimalPrecision || allowSoftMinMax || allowLogScale, - [allowYAxisUnit, allowDecimalPrecision, allowSoftMinMax, allowLogScale], - ); + const isAxisSectionVisible = useMemo(() => allowSoftMinMax || allowLogScale, [ + allowSoftMinMax, + allowLogScale, + ]); const isLegendSectionVisible = useMemo( () => allowLegendPosition || allowLegendColors, @@ -292,11 +292,7 @@ function RightContainer({ Panel Settings - } - > + }>
Name
+ {allowPanelTimePreference && ( +
+ + Panel Time Preference + + +
+ )} + {allowStackingBarChart && (
Stack series @@ -385,17 +394,39 @@ function RightContainer({ />
)} +
- {allowPanelTimePreference && ( -
- - Panel Time Preference + } + > + {allowYAxisUnit && ( + + )} + + {allowDecimalPrecision && ( +
+ + Decimal Precision - setDecimalPrecision(val)} />
)} @@ -410,38 +441,7 @@ function RightContainer({
{isAxisSectionVisible && ( - }> - {allowYAxisUnit && ( - - )} - - {allowDecimalPrecision && ( -
- - Decimal Precision - -