mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-14 12:50:37 +03:00
M: Disable selection for control elements
This commit is contained in:
parent
08dda1dbf7
commit
4fc8cea3d7
|
@ -37,7 +37,7 @@ export function DropdownButton({
|
|||
'px-3 py-1 inline-flex items-center gap-2',
|
||||
'text-left text-sm text-ellipsis whitespace-nowrap',
|
||||
'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',
|
||||
className
|
||||
)}
|
||||
|
|
|
@ -38,7 +38,7 @@ export function SelectLocationContext({
|
|||
<div
|
||||
ref={menu.ref} //
|
||||
onBlur={menu.handleBlur}
|
||||
className={clsx('text-right self-start', className)}
|
||||
className={clsx('text-right self-start select-none', className)}
|
||||
{...restProps}
|
||||
>
|
||||
<MiniButton
|
||||
|
|
|
@ -90,7 +90,7 @@ export function ToolbarSearch({ className, total, filtered }: ToolbarSearchProps
|
|||
aria-label='Выбор пользователя для фильтра по владельцу'
|
||||
placeholder='Выберите владельца'
|
||||
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}
|
||||
value={filterUser}
|
||||
onChange={setFilterUser}
|
||||
|
|
|
@ -38,7 +38,7 @@ export function TabBlockCard() {
|
|||
<SelectParent
|
||||
items={manager.oss.blocks.filter(block => !all_children.includes(block.nodeID))}
|
||||
value={field.value ? manager.oss.blockByID.get(field.value) ?? null : null}
|
||||
placeholder='Блок содержания не выбран'
|
||||
placeholder='Родительский блок'
|
||||
onChange={value => field.onChange(value ? value.id : null)}
|
||||
/>
|
||||
)}
|
||||
|
|
|
@ -70,7 +70,7 @@ export function DlgEditBlock() {
|
|||
<SelectParent
|
||||
items={manager.oss.blocks.filter(block => block.id !== target.id)}
|
||||
value={field.value ? manager.oss.blockByID.get(field.value) ?? null : null}
|
||||
placeholder='Блок содержания не выбран'
|
||||
placeholder='Родительский блок'
|
||||
onChange={value => field.onChange(value ? value.id : null)}
|
||||
/>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue
Block a user