From d188efa9eeb43d9c434827d946cf69670cf7b29f Mon Sep 17 00:00:00 2001 From: Gaurav Date: Thu, 5 Dec 2024 17:29:12 +0530 Subject: [PATCH] fixed issue with the alignment in JWT section --- Client/src/Components/Inputs/Select/index.jsx | 6 ++++-- Client/src/Pages/AdvancedSettings/index.jsx | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Client/src/Components/Inputs/Select/index.jsx b/Client/src/Components/Inputs/Select/index.jsx index 8517c3214..2804a76f3 100644 --- a/Client/src/Components/Inputs/Select/index.jsx +++ b/Client/src/Components/Inputs/Select/index.jsx @@ -49,6 +49,7 @@ const Select = ({ onBlur, sx, name = "", + labelControlSpacing = 2, }) => { const theme = useTheme(); const itemStyles = { @@ -57,10 +58,10 @@ const Select = ({ borderRadius: theme.shape.borderRadius, margin: theme.spacing(2), }; - + return ( {label && ( @@ -144,6 +145,7 @@ Select.propTypes = { onChange: PropTypes.func.isRequired, onBlur: PropTypes.func, sx: PropTypes.object, + labelControlSpacing:PropTypes.number, }; export default Select; diff --git a/Client/src/Pages/AdvancedSettings/index.jsx b/Client/src/Pages/AdvancedSettings/index.jsx index 35f0e4c85..90bcf21d6 100644 --- a/Client/src/Pages/AdvancedSettings/index.jsx +++ b/Client/src/Pages/AdvancedSettings/index.jsx @@ -270,6 +270,7 @@ const AdvancedSettings = ({ isAdmin }) => { onChange={handleJWTTTLUnits} onBlur={handleBlur} error={errors.jwtTTLUnits} + labelControlSpacing={0} />