Merge pull request #1293 from gauravnadkarni/fix/alignment-required-for-jwt-section
fixed issue with the alignment in JWT section
This commit is contained in:
2 files changed
+5
-2
No files matched your search
@@ -49,6 +49,7 @@ const Select = ({
|
|||||||
onBlur,
|
onBlur,
|
||||||
sx,
|
sx,
|
||||||
name = "",
|
name = "",
|
||||||
|
labelControlSpacing = 2,
|
||||||
}) => {
|
}) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const itemStyles = {
|
const itemStyles = {
|
||||||
@@ -57,10 +58,10 @@ const Select = ({
|
|||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
margin: theme.spacing(2),
|
margin: theme.spacing(2),
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
gap={theme.spacing(2)}
|
gap={theme.spacing(labelControlSpacing)}
|
||||||
className="select-wrapper"
|
className="select-wrapper"
|
||||||
>
|
>
|
||||||
{label && (
|
{label && (
|
||||||
@@ -144,6 +145,7 @@ Select.propTypes = {
|
|||||||
onChange: PropTypes.func.isRequired,
|
onChange: PropTypes.func.isRequired,
|
||||||
onBlur: PropTypes.func,
|
onBlur: PropTypes.func,
|
||||||
sx: PropTypes.object,
|
sx: PropTypes.object,
|
||||||
|
labelControlSpacing: PropTypes.number,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Select;
|
export default Select;
|
||||||
@@ -270,6 +270,7 @@ const AdvancedSettings = ({ isAdmin }) => {
|
|||||||
onChange={handleJWTTTLUnits}
|
onChange={handleJWTTTLUnits}
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
error={errors.jwtTTLUnits}
|
error={errors.jwtTTLUnits}
|
||||||
|
labelControlSpacing={0}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
|||||||
Reference in new issue
Block a user