feat(ui): tweak slider label spacing

This commit is contained in:
psychedelicious 2023-07-15 19:55:17 +10:00
parent d1ecd007ab
commit 457e4b7fc5

View File

@ -201,7 +201,11 @@ const IAISlider = (props: IAIFullSliderProps) => {
isDisabled={isDisabled}
{...sliderFormControlProps}
>
{label && <FormLabel {...sliderFormLabelProps}>{label}</FormLabel>}
{label && (
<FormLabel sx={withInput ? { mb: -1.5 } : {}} {...sliderFormLabelProps}>
{label}
</FormLabel>
)}
<HStack w="100%" gap={2} alignItems="center">
<Slider