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,
className
)}
aria-hidden={!isOpen}
inert={!isOpen}
{...restProps}
>

View File

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

View File

@ -23,5 +23,5 @@ export function BlockStats({ target, oss }: BlockStatsProps) {
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);
return (
<div className='flex border-b bg-input rounded-t-md'>
<div className='flex border-b bg-input rounded-t-md pr-1'>
<SearchBar
id='constituents_search'
noBorder

View File

@ -107,7 +107,7 @@ export function EditorConstituenta() {
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 ? (
<FormConstituenta
key={activeCst.id}

View File

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