M: Disable selection for control elements
This commit is contained in:
parent
161a51fc45
commit
c361047caf
|
@ -37,7 +37,7 @@ export function DropdownButton({
|
||||||
'px-3 py-1 inline-flex items-center gap-2',
|
'px-3 py-1 inline-flex items-center gap-2',
|
||||||
'text-left text-sm text-ellipsis whitespace-nowrap',
|
'text-left text-sm text-ellipsis whitespace-nowrap',
|
||||||
'disabled:text-muted-foreground disabled:opacity-75',
|
'disabled:text-muted-foreground disabled:opacity-75',
|
||||||
'focus-outline cc-animate-background',
|
'focus-outline cc-animate-background select-none',
|
||||||
!!onClick ? 'cc-hover-bg cursor-pointer disabled:cursor-auto' : 'bg-secondary text-secondary-foreground',
|
!!onClick ? 'cc-hover-bg cursor-pointer disabled:cursor-auto' : 'bg-secondary text-secondary-foreground',
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export function SelectLocationContext({
|
||||||
<div
|
<div
|
||||||
ref={menu.ref} //
|
ref={menu.ref} //
|
||||||
onBlur={menu.handleBlur}
|
onBlur={menu.handleBlur}
|
||||||
className={clsx('text-right self-start', className)}
|
className={clsx('text-right self-start select-none', className)}
|
||||||
{...restProps}
|
{...restProps}
|
||||||
>
|
>
|
||||||
<MiniButton
|
<MiniButton
|
||||||
|
|
|
@ -90,7 +90,7 @@ export function ToolbarSearch({ className, total, filtered }: ToolbarSearchProps
|
||||||
aria-label='Выбор пользователя для фильтра по владельцу'
|
aria-label='Выбор пользователя для фильтра по владельцу'
|
||||||
placeholder='Выберите владельца'
|
placeholder='Выберите владельца'
|
||||||
noBorder
|
noBorder
|
||||||
className='min-w-60 mx-1 mb-1 cc-hover-bg'
|
className='min-w-60 mx-1 mb-1 cc-hover-bg select-none'
|
||||||
filter={filterNonEmptyUsers}
|
filter={filterNonEmptyUsers}
|
||||||
value={filterUser}
|
value={filterUser}
|
||||||
onChange={setFilterUser}
|
onChange={setFilterUser}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export function TabBlockCard() {
|
||||||
<SelectParent
|
<SelectParent
|
||||||
items={manager.oss.blocks.filter(block => !all_children.includes(block.nodeID))}
|
items={manager.oss.blocks.filter(block => !all_children.includes(block.nodeID))}
|
||||||
value={field.value ? manager.oss.blockByID.get(field.value) ?? null : null}
|
value={field.value ? manager.oss.blockByID.get(field.value) ?? null : null}
|
||||||
placeholder='Блок содержания не выбран'
|
placeholder='Родительский блок'
|
||||||
onChange={value => field.onChange(value ? value.id : null)}
|
onChange={value => field.onChange(value ? value.id : null)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -70,7 +70,7 @@ export function DlgEditBlock() {
|
||||||
<SelectParent
|
<SelectParent
|
||||||
items={manager.oss.blocks.filter(block => block.id !== target.id)}
|
items={manager.oss.blocks.filter(block => block.id !== target.id)}
|
||||||
value={field.value ? manager.oss.blockByID.get(field.value) ?? null : null}
|
value={field.value ? manager.oss.blockByID.get(field.value) ?? null : null}
|
||||||
placeholder='Блок содержания не выбран'
|
placeholder='Родительский блок'
|
||||||
onChange={value => field.onChange(value ? value.id : null)}
|
onChange={value => field.onChange(value ? value.id : null)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user