fix: Misaligned Select with input box (#19400)

* Aligned Select field with input

* Minor fix in alignment

---------

Co-authored-by: amrit <[email protected]>
Co-authored-by: Tushar Bhatt <[email protected]>
Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-02-24 07:54:48 +00:00
1 parent 4546bd8653
commit 42e94cd5b7
1 file changed
+5 -3
@@ -164,7 +164,7 @@ export default function RequiresConfirmationController({
defaults="When booked with less than <time></time> notice" defaults="When booked with less than <time></time> notice"
components={{ components={{
time: ( time: (
<div className="mx-2 inline-flex"> <div className="mx-2 inline-flex items-center">
<Input <Input
type="number" type="number"
min={1} min={1}
@@ -184,7 +184,7 @@ export default function RequiresConfirmationController({
); );
}} }}
className={classNames( className={classNames(
"border-default h-8! !m-0 block w-16 rounded-r-none border-r-0 text-sm [appearance:textfield] focus:z-10 focus:border-r", "border-default h-9! !m-0 block w-16 rounded-r-none border-r-0 text-sm [appearance:textfield] focus:z-10 focus:border-r",
customClassNames?.conditionalConfirmationRadio?.timeInput customClassNames?.conditionalConfirmationRadio?.timeInput
)} )}
defaultValue={metadata?.requiresConfirmationThreshold?.time || 30} defaultValue={metadata?.requiresConfirmationThreshold?.time || 30}
@@ -201,7 +201,9 @@ export default function RequiresConfirmationController({
className={ className={
customClassNames?.conditionalConfirmationRadio?.timeUnitSelect customClassNames?.conditionalConfirmationRadio?.timeUnitSelect
} }
innerClassNames={{ control: "rounded-l-none bg-subtle" }} innerClassNames={{
control: "rounded-l-none max-h-4 px-3 bg-subtle",
}}
onChange={(opt) => { onChange={(opt) => {
setRequiresConfirmationSetup({ setRequiresConfirmationSetup({
time: time: