M: Minor syntax fixes
Some checks are pending
Backend CI / build (3.12) (push) Waiting to run
Frontend CI / build (22.x) (push) Waiting to run

This commit is contained in:
Ivan 2024-08-23 22:53:53 +03:00
parent b4d8ff74b2
commit faa0fd3fcc
8 changed files with 8 additions and 8 deletions

View File

@ -151,7 +151,7 @@ const RSInput = forwardRef<ReactCodeMirrorRef, RSInputProps>(
<div className={clsx('flex flex-col gap-2', className, cursor)} style={style}>
<Label text={label} />
<CodeMirror
className={'font-math'}
className='font-math'
id={id}
ref={thisRef}
basicSetup={editorSetup}

View File

@ -46,7 +46,7 @@ function SelectorButton({
{...restProps}
>
{icon ? icon : null}
{text ? <div className={'whitespace-nowrap'}>{text}</div> : null}
{text ? <div className='whitespace-nowrap'>{text}</div> : null}
</button>
);
}

View File

@ -42,7 +42,7 @@ function DlgRenameCst({ hideWindow, initial, onRename }: DlgRenameCstProps) {
<Modal
header='Переименование конституенты'
submitText='Переименовать'
submitInvalidTooltip={'Введите незанятое имя, соответствующее типу'}
submitInvalidTooltip='Введите незанятое имя, соответствующее типу'
hideWindow={hideWindow}
canSubmit={validated}
onSubmit={() => onRename(cstData)}

View File

@ -30,7 +30,7 @@ function DlgSubstituteCst({ hideWindow, onSubstitute, schema }: DlgSubstituteCst
<Modal
header='Отождествление'
submitText='Отождествить'
submitInvalidTooltip={'Выберите две различные конституенты'}
submitInvalidTooltip='Выберите две различные конституенты'
hideWindow={hideWindow}
canSubmit={canSubmit}
onSubmit={handleSubmit}

View File

@ -117,7 +117,7 @@ function MenuOssTabs({ onDestroy }: MenuOssTabsProps) {
noBorder
noOutline
tabIndex={-1}
title={'Редактирование'}
title='Редактирование'
hideTitle={editMenu.isOpen}
className='h-full px-2'
icon={<IconEdit2 size='1.25rem' className={controller.isMutable ? 'icon-green' : 'icon-red'} />}

View File

@ -79,7 +79,7 @@ function ToolbarConstituenta({
/>
<MiniButton
title='Создать конституенту после данной'
icon={<IconNewItem size={'1.25rem'} className='icon-green' />}
icon={<IconNewItem size='1.25rem' className='icon-green' />}
disabled={!controller.isContentEditable || controller.isProcessing}
onClick={() => controller.createCst(activeCst?.cst_type, false)}
/>

View File

@ -207,7 +207,7 @@ function MenuRSTabs({ onDestroy }: MenuRSTabsProps) {
noBorder
noOutline
tabIndex={-1}
title={'Редактирование'}
title='Редактирование'
hideTitle={editMenu.isOpen}
className='h-full px-2'
icon={<IconEdit2 size='1.25rem' className={controller.isContentEditable ? 'icon-green' : 'icon-red'} />}

View File

@ -6,7 +6,7 @@
* Global application Parameters. The place where magic numbers are put to rest.
*/
export const PARAMETER = {
smallScreen: 640, // == tailwind:xs
smallScreen: 640, // == tailwind:sm
smallTreeNodes: 50, // amount of nodes threshold for size increase for large graphs
refreshTimeout: 100, // milliseconds delay for post-refresh actions
minimalTimeout: 10, // milliseconds delay for fast updates