0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed select input size bug in AdminX

refs. https://github.com/TryGhost/Team/issues/3354
This commit is contained in:
Peter Zimon 2023-06-07 22:58:47 +02:00
parent 1cd341d9e6
commit 567422174d

View file

@ -85,7 +85,7 @@ const Select: React.FC<SelectProps> = ({
const optionClasses = optionClassName;
return (
<>
<div className='flex w-full flex-col'>
{title && <Heading htmlFor={id} useLabelTag={true}>{title}</Heading>}
<div className={containerClasses}>
<select className={selectClasses} id={id} value={selectedOption} onChange={handleOptionChange}>
@ -102,7 +102,7 @@ const Select: React.FC<SelectProps> = ({
</select>
</div>
{hint && <Hint color={error ? 'red' : ''}>{hint}</Hint>}
</>
</div>
);
};