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:
Alexander Holliday
2024-12-07 17:40:52 -08:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
@@ -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 (
<Stack
gap={theme.spacing(2)}
gap={theme.spacing(labelControlSpacing)}
className="select-wrapper"
>
{label && (
@@ -144,6 +145,7 @@ Select.propTypes = {
onChange: PropTypes.func.isRequired,
onBlur: PropTypes.func,
sx: PropTypes.object,
labelControlSpacing: PropTypes.number,
};
export default Select;
@@ -270,6 +270,7 @@ const AdvancedSettings = ({ isAdmin }) => {
onChange={handleJWTTTLUnits}
onBlur={handleBlur}
error={errors.jwtTTLUnits}
labelControlSpacing={0}
/>
</Stack>
<TextInput