diff --git a/rsconcept/frontend/src/components/select/SubstitutionsPicker.tsx b/rsconcept/frontend/src/components/select/SubstitutionsPicker.tsx
index 6f775281..8468e2e4 100644
--- a/rsconcept/frontend/src/components/select/SubstitutionsPicker.tsx
+++ b/rsconcept/frontend/src/components/select/SubstitutionsPicker.tsx
@@ -2,7 +2,7 @@
import { useCallback, useMemo, useState } from 'react';
import { BiChevronLeft, BiChevronRight, BiFirstPage, BiLastPage, BiX } from 'react-icons/bi';
-import { LuLocate, LuLocateOff, LuPower, LuPowerOff, LuReplace } from 'react-icons/lu';
+import { LuFlag, LuFlagOff, LuPower, LuPowerOff, LuReplace } from 'react-icons/lu';
import ConstituentaBadge from '@/components/info/ConstituentaBadge';
import ConstituentaSelector from '@/components/select/ConstituentaSelector';
@@ -132,14 +132,11 @@ function SubstitutionsPicker({
columnHelper.accessor(item => describeConstituenta(item.rightCst), {
id: 'right_text',
header: 'Описание',
- size: 1000,
+ minSize: 1000,
cell: props =>
{props.getValue()}
}),
columnHelper.display({
id: 'actions',
- size: 50,
- minSize: 50,
- maxSize: 50,
cell: props => (
-
+
+
) : (
-
+
)
}
/>
@@ -198,14 +195,14 @@ function SubstitutionsPicker({
title='Добавить в таблицу отождествлений'
className='mb-[0.375rem] grow-0'
icon={
}
- disabled={!leftCst || !rightCst}
+ disabled={!leftCst || !rightCst || leftCst === rightCst}
onClick={addSubstitution}
/>
-
+
+
) : (
-
+
)
}
/>
diff --git a/rsconcept/frontend/src/dialogs/DlgRenameCst.tsx b/rsconcept/frontend/src/dialogs/DlgRenameCst.tsx
index 64fbc881..209ca11b 100644
--- a/rsconcept/frontend/src/dialogs/DlgRenameCst.tsx
+++ b/rsconcept/frontend/src/dialogs/DlgRenameCst.tsx
@@ -3,11 +3,13 @@
import clsx from 'clsx';
import { useLayoutEffect, useState } from 'react';
+import BadgeHelp from '@/components/man/BadgeHelp';
import Modal, { ModalProps } from '@/components/ui/Modal';
import SelectSingle from '@/components/ui/SelectSingle';
import TextInput from '@/components/ui/TextInput';
import { useRSForm } from '@/context/RSFormContext';
import usePartialUpdate from '@/hooks/usePartialUpdate';
+import { HelpTopic } from '@/models/miscellaneous';
import { CstType, ICstRenameData } from '@/models/rsform';
import { generateAlias, validateNewAlias } from '@/models/rsformAPI';
import { labelCstType } from '@/utils/labels';
@@ -45,7 +47,7 @@ function DlgRenameCst({ hideWindow, initial, onRename }: DlgRenameCstProps) {
hideWindow={hideWindow}
canSubmit={validated}
onSubmit={handleSubmit}
- className={clsx('w-[30rem]', 'py-6 px-6 flex gap-6 justify-center items-center')}
+ className={clsx('w-[30rem]', 'py-6 px-6 flex gap-3 justify-center items-center')}
>
updateData({ cst_type: data?.value ?? CstType.BASE })}
/>
+