mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-13 12:20:36 +03:00
M: Minor UI fixes
This commit is contained in:
parent
2ae0db5c2b
commit
4294153146
|
@ -45,7 +45,6 @@ export function Dropdown({
|
|||
margin,
|
||||
className
|
||||
)}
|
||||
aria-hidden={!isOpen}
|
||||
inert={!isOpen}
|
||||
{...restProps}
|
||||
>
|
||||
|
|
|
@ -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={
|
||||
|
|
|
@ -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' />;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user