Shrink SelectMenu selected text
This commit is contained in:
parent
d2ba985328
commit
dda139080c
@ -162,6 +162,7 @@ export default function SelectMenu({
|
|||||||
{children ?? <div className="flex items-center w-full">
|
{children ?? <div className="flex items-center w-full">
|
||||||
<div className="grow min-w-0">
|
<div className="grow min-w-0">
|
||||||
<SelectMenuOption
|
<SelectMenuOption
|
||||||
|
className="text-lg"
|
||||||
value={value}
|
value={value}
|
||||||
label={selectedOption?.label}
|
label={selectedOption?.label}
|
||||||
accessoryStart={selectedOption?.accessoryStart}
|
accessoryStart={selectedOption?.accessoryStart}
|
||||||
|
|||||||
@ -15,11 +15,13 @@ export default function SelectMenuOption<T = string>({
|
|||||||
accessoryStart,
|
accessoryStart,
|
||||||
accessoryEnd,
|
accessoryEnd,
|
||||||
note,
|
note,
|
||||||
|
className,
|
||||||
isSelected,
|
isSelected,
|
||||||
isHighlighted,
|
isHighlighted,
|
||||||
shouldHighlightOnHover,
|
shouldHighlightOnHover,
|
||||||
onClick,
|
onClick,
|
||||||
}: {
|
}: {
|
||||||
|
className?: string
|
||||||
isSelected?: boolean
|
isSelected?: boolean
|
||||||
isHighlighted?: boolean
|
isHighlighted?: boolean
|
||||||
shouldHighlightOnHover?: boolean
|
shouldHighlightOnHover?: boolean
|
||||||
@ -42,11 +44,12 @@ export default function SelectMenuOption<T = string>({
|
|||||||
className={clsx(
|
className={clsx(
|
||||||
'flex flex-col',
|
'flex flex-col',
|
||||||
'px-1.5 py-1 rounded-sm',
|
'px-1.5 py-1 rounded-sm',
|
||||||
'text-lg select-none',
|
'select-none',
|
||||||
'cursor-pointer',
|
'cursor-pointer',
|
||||||
isHighlighted && 'bg-dim',
|
isHighlighted && 'bg-dim',
|
||||||
shouldHighlightOnHover && 'hover:bg-dim',
|
shouldHighlightOnHover && 'hover:bg-dim',
|
||||||
onClick && 'active:bg-medium',
|
onClick && 'active:bg-medium',
|
||||||
|
className,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-2.5">
|
<div className="flex items-center gap-2.5">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user