mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed select input size bug in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
This commit is contained in:
parent
1cd341d9e6
commit
567422174d
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ const Select: React.FC<SelectProps> = ({
|
||||||
const optionClasses = optionClassName;
|
const optionClasses = optionClassName;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className='flex w-full flex-col'>
|
||||||
{title && <Heading htmlFor={id} useLabelTag={true}>{title}</Heading>}
|
{title && <Heading htmlFor={id} useLabelTag={true}>{title}</Heading>}
|
||||||
<div className={containerClasses}>
|
<div className={containerClasses}>
|
||||||
<select className={selectClasses} id={id} value={selectedOption} onChange={handleOptionChange}>
|
<select className={selectClasses} id={id} value={selectedOption} onChange={handleOptionChange}>
|
||||||
|
@ -102,7 +102,7 @@ const Select: React.FC<SelectProps> = ({
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
{hint && <Hint color={error ? 'red' : ''}>{hint}</Hint>}
|
{hint && <Hint color={error ? 'red' : ''}>{hint}</Hint>}
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue