M: Minor UI fixes
Some checks failed
Frontend CI / build (22.x) (push) Waiting to run
Frontend CI / notify-failure (push) Blocked by required conditions
Backend CI / build (3.12) (push) Has been cancelled
Backend CI / notify-failure (push) Has been cancelled

This commit is contained in:
Ivan 2025-08-06 15:17:59 +03:00
parent 2ae0db5c2b
commit 4294153146
6 changed files with 9 additions and 10 deletions

View File

@ -45,7 +45,6 @@ export function Dropdown({
margin, margin,
className className
)} )}
aria-hidden={!isOpen}
inert={!isOpen} inert={!isOpen}
{...restProps} {...restProps}
> >

View File

@ -246,10 +246,7 @@ export function MenuOperation({ operation, onHide }: MenuOperationProps) {
disabled={isProcessing} disabled={isProcessing}
/> />
) : null} ) : null}
{isMutable && {isMutable && !operation.result && operation.operation_type === OperationType.INPUT ? (
!operation.result &&
operation.operation_type === OperationType.SYNTHESIS &&
operation.arguments.length === 0 ? (
<DropdownButton <DropdownButton
text='Создать схему' text='Создать схему'
title='Создать пустую схему' title='Создать пустую схему'
@ -267,7 +264,10 @@ export function MenuOperation({ operation, onHide }: MenuOperationProps) {
disabled={isProcessing} disabled={isProcessing}
/> />
) : null} ) : null}
{isMutable && !operation.result && operation.operation_type === OperationType.SYNTHESIS ? ( {isMutable &&
!operation.result &&
operation.operation_type === OperationType.SYNTHESIS &&
operation.arguments.length > 0 ? (
<DropdownButton <DropdownButton
text='Активировать синтез' text='Активировать синтез'
titleHtml={ titleHtml={

View File

@ -23,5 +23,5 @@ export function BlockStats({ target, oss }: BlockStatsProps) {
count_references: operations.filter(item => item.operation_type === OperationType.REPLICA).length count_references: operations.filter(item => item.operation_type === OperationType.REPLICA).length
}; };
return <OssStats stats={blockStats} className='pr-3' />; return <OssStats stats={blockStats} className='pr-6 py-2 -ml-4' />;
} }

View File

@ -28,7 +28,7 @@ export function ConstituentsSearch({ dense, hideGraphFilter }: ConstituentsSearc
const toggleCrucial = useCstSearchStore(state => state.toggleCrucial); const toggleCrucial = useCstSearchStore(state => state.toggleCrucial);
return ( return (
<div className='flex border-b bg-input rounded-t-md'> <div className='flex border-b bg-input rounded-t-md pr-1'>
<SearchBar <SearchBar
id='constituents_search' id='constituents_search'
noBorder noBorder

View File

@ -107,7 +107,7 @@ export function EditorConstituenta() {
isNarrow={isNarrow} isNarrow={isNarrow}
/> />
<div className='mx-0 min-w-120 md:mx-auto pt-8 md:w-195 shrink-0 xs:pt-0'> <div className='mx-0 min-w-120 md:mx-auto pt-8 md:w-195 shrink-0 xs:pt-0 min-h-6'>
{activeCst ? ( {activeCst ? (
<FormConstituenta <FormConstituenta
key={activeCst.id} key={activeCst.id}

View File

@ -69,7 +69,7 @@ export function ViewHidden({ items }: ViewHiddenProps) {
'cc-scroll-y', 'cc-scroll-y',
!isFolded && 'open' !isFolded && 'open'
)} )}
aria-hidden={isFolded} inert={isFolded}
style={{ maxHeight: hiddenHeight }} style={{ maxHeight: hiddenHeight }}
> >
{items.map(cstID => { {items.map(cstID => {