mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: adjust DateInput styling
This commit is contained in:
@@ -226,7 +226,7 @@ const DateInput = ({
|
||||
|
||||
<div
|
||||
className={cn(
|
||||
'input h-12 bg-inherit px-3 py-2.5 text-base font-normal leading-6 w-full rounded-lg transition-all duration-200 flex items-center border border-base-content/10',
|
||||
'input h-fit bg-inherit px-3 py-2.5 text-base font-normal leading-6 w-full rounded-lg transition-all duration-200 flex items-center border border-base-content/10',
|
||||
{
|
||||
'border-error': finalIsError,
|
||||
'border-success': externalValid && !finalIsError,
|
||||
@@ -245,7 +245,10 @@ const DateInput = ({
|
||||
disabled={disabled}
|
||||
readOnly // ✅ tidak bisa diketik manual
|
||||
className={cn(
|
||||
'grow bg-transparent cursor-pointer focus:outline-none',
|
||||
'grow bg-transparent cursor-pointer focus:outline-none text-sm leading-tight',
|
||||
{
|
||||
'cursor-not-allowed': readOnly,
|
||||
},
|
||||
className?.input
|
||||
)}
|
||||
/>
|
||||
@@ -257,8 +260,8 @@ const DateInput = ({
|
||||
)}
|
||||
<Icon
|
||||
icon='heroicons:calendar-date-range'
|
||||
width={14}
|
||||
height={14}
|
||||
width={15}
|
||||
height={15}
|
||||
className='cursor-pointer text-base-content/20'
|
||||
onClick={(e) =>
|
||||
handleClick(e as unknown as React.MouseEvent<HTMLInputElement>)
|
||||
|
||||
Reference in New Issue
Block a user