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