mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Minor UI fixes
This commit is contained in:
parent
150bfa0629
commit
f73badebaa
|
@ -45,7 +45,7 @@ const editorSetup: BasicSetupOptions = {
|
|||
|
||||
interface RSInputProps
|
||||
extends Pick<ReactCodeMirrorProps,
|
||||
'id' | 'height' | 'value' | 'className' | 'onFocus' | 'onBlur' | 'placeholder'
|
||||
'id' | 'height' | 'minHeight' | 'maxHeight' | 'value' | 'className' | 'onFocus' | 'onBlur' | 'placeholder'
|
||||
> {
|
||||
label?: string
|
||||
dimensions?: string
|
||||
|
|
|
@ -177,7 +177,7 @@ function ArgumentsTab({ state, schema, partialUpdate }: ArgumentsTabProps) {
|
|||
<RSInput id='result'
|
||||
dimensions='w-full mt-[0.3rem]'
|
||||
placeholder='Итоговое определение'
|
||||
height='4.8rem'
|
||||
height='4.9rem'
|
||||
value={state.definition}
|
||||
disabled
|
||||
/>
|
||||
|
|
|
@ -40,7 +40,7 @@ function ConstituentaTab({state, partialUpdate}: ConstituentaTabProps) {
|
|||
/>
|
||||
<RSInput id='expression' label='Формальное определение'
|
||||
placeholder='Родоструктурное выражение, задающее формальное определение'
|
||||
height='4.8rem'
|
||||
height='4.9rem'
|
||||
value={state.definition_formal}
|
||||
onChange={value => partialUpdate({definition_formal: value})}
|
||||
/>
|
||||
|
@ -52,7 +52,7 @@ function ConstituentaTab({state, partialUpdate}: ConstituentaTabProps) {
|
|||
onChange={event => partialUpdate({ definition_raw: event.target.value })}
|
||||
/>
|
||||
<TextArea id='convention' label='Конвенция / Комментарий'
|
||||
placeholder='Договоренность об интерпретации неопределяемого понятия
Комментарий к производному понятию'
|
||||
placeholder='Договоренность об интерпретации или пояснение к схеме'
|
||||
rows={2}
|
||||
value={state.convention}
|
||||
spellCheck
|
||||
|
|
|
@ -121,7 +121,7 @@ function TemplateTab({ state, partialUpdate }: TemplateTabProps) {
|
|||
spellCheck
|
||||
/>
|
||||
<RSInput id='expression'
|
||||
height='4.8rem'
|
||||
height='4.9rem'
|
||||
placeholder='Выберите шаблон из списка'
|
||||
disabled
|
||||
value={state.prototype?.definition_formal}
|
||||
|
|
|
@ -79,7 +79,7 @@ function DlgCreateCst({ hideWindow, initial, schema, onCreate }: DlgCreateCstPro
|
|||
/>
|
||||
<RSInput id='expression' label='Формальное определение'
|
||||
placeholder='Родоструктурное выражение, задающее формальное определение'
|
||||
height='4.8rem'
|
||||
height='4.9rem'
|
||||
value={cstData.definition_formal}
|
||||
onChange={value => updateCstData({definition_formal: value})}
|
||||
/>
|
||||
|
@ -91,7 +91,7 @@ function DlgCreateCst({ hideWindow, initial, schema, onCreate }: DlgCreateCstPro
|
|||
onChange={event => updateCstData({ definition_raw: event.target.value })}
|
||||
/>
|
||||
<TextArea id='convention' label='Конвенция / Комментарий'
|
||||
placeholder='Договоренность об интерпретации неопределяемого понятия
Комментарий к производному понятию'
|
||||
placeholder='Договоренность об интерпретации или пояснение'
|
||||
rows={2}
|
||||
value={cstData.convention}
|
||||
spellCheck
|
||||
|
|
|
@ -230,7 +230,6 @@ function EditorConstituenta({
|
|||
<div className='flex flex-col gap-3 mt-1'>
|
||||
<RefsInput id='term' label='Термин'
|
||||
placeholder='Обозначение, используемое в текстовых определениях данной схемы'
|
||||
height='2.1rem'
|
||||
items={schema?.items}
|
||||
value={term}
|
||||
initialValue={activeCst?.term_raw ?? ''}
|
||||
|
@ -239,7 +238,7 @@ function EditorConstituenta({
|
|||
onChange={newValue => setTerm(newValue)}
|
||||
/>
|
||||
<TextArea id='typification' label='Типизация'
|
||||
dense
|
||||
dense noBorder
|
||||
rows={1}
|
||||
value={typification}
|
||||
colors='clr-app'
|
||||
|
@ -257,7 +256,6 @@ function EditorConstituenta({
|
|||
/>
|
||||
<RefsInput id='definition' label='Текстовое определение'
|
||||
placeholder='Лингвистическая интерпретация формального выражения'
|
||||
height='4.8rem'
|
||||
items={schema?.items}
|
||||
value={textDefinition}
|
||||
initialValue={activeCst?.definition_raw ?? ''}
|
||||
|
@ -266,7 +264,7 @@ function EditorConstituenta({
|
|||
onChange={newValue => setTextDefinition(newValue)}
|
||||
/>
|
||||
<TextArea id='convention' label='Конвенция / Комментарий'
|
||||
placeholder='Договоренность об интерпретации неопределяемого понятия
Комментарий к производному понятию'
|
||||
placeholder='Договоренность об интерпретации или пояснение'
|
||||
rows={2}
|
||||
value={convention}
|
||||
disabled={!isEnabled}
|
||||
|
|
|
@ -129,8 +129,8 @@ function EditorRSExpression({
|
|||
</div>
|
||||
</div>
|
||||
<RSInput innerref={rsInput}
|
||||
height='4.8rem'
|
||||
value={value}
|
||||
minHeight='3.5rem'
|
||||
disabled={disabled}
|
||||
onChange={handleChange}
|
||||
{...props}
|
||||
|
|
|
@ -101,7 +101,7 @@ function ViewSideConstituents({ expression, baseHeight, activeID, onOpenEdit }:
|
|||
filtered = filtered.filter(cst => matchConstituenta(cst, filterText, filterMatch));
|
||||
}
|
||||
setFilteredData(filtered);
|
||||
}, [filterText, setFilteredData, filterSource, expression, schema, filterMatch, activeID]);
|
||||
}, [filterText, setFilteredData, filterSource, expression, schema?.items, schema, filterMatch, activeID]);
|
||||
|
||||
const handleRowClicked = useCallback(
|
||||
(cst: IConstituenta, event: React.MouseEvent<Element, MouseEvent>) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user