mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:28:35 +02:00
Fix text cutting off on <Select/>
This commit is contained in:
@@ -88,11 +88,11 @@ export function Select<T extends string>({
|
|||||||
onChange={(e) => handleChange(e.target.value as T)}
|
onChange={(e) => handleChange(e.target.value as T)}
|
||||||
onFocus={() => setFocused(true)}
|
onFocus={() => setFocused(true)}
|
||||||
onBlur={() => setFocused(false)}
|
onBlur={() => setFocused(false)}
|
||||||
|
disabled={disabled}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'pr-7 w-full outline-none bg-transparent disabled:opacity-disabled',
|
'pr-7 w-full outline-none bg-transparent disabled:opacity-disabled',
|
||||||
'leading-[1]', // Center the text better vertically
|
'leading-[1] rounded-none', // Center the text better vertically
|
||||||
)}
|
)}
|
||||||
disabled={disabled}
|
|
||||||
>
|
>
|
||||||
{isInvalidSelection && <option value={'__NONE__'}>-- Select an Option --</option>}
|
{isInvalidSelection && <option value={'__NONE__'}>-- Select an Option --</option>}
|
||||||
{options.map((o) => {
|
{options.map((o) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user