M: Disable selection for control elements

This commit is contained in:
Ivan 2025-07-03 11:58:42 +03:00
parent 08dda1dbf7
commit 4fc8cea3d7
5 changed files with 5 additions and 5 deletions

View File

@ -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
)}

View File

@ -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

View File

@ -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}

View File

@ -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)}
/>
)}

View File

@ -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)}
/>
)}