Fix dialog UI

This commit is contained in:
IRBorisov 2023-11-27 13:06:52 +03:00
parent cf57cf369a
commit 096e11a35a

View File

@ -163,7 +163,7 @@ function DlgEditReference({ hideWindow, items, initial, onSave }: DlgEditReferen
canSubmit={isValid} canSubmit={isValid}
onSubmit={handleSubmit} onSubmit={handleSubmit}
> >
<div className='min-w-[40rem] max-w-[40rem] flex flex-col gap-4 mb-4 min-h-[34rem]'> <div className='min-w-[40rem] max-w-[40rem] flex flex-col gap-3 mb-2 min-h-[34rem]'>
<div className='flex items-center self-center flex-start'> <div className='flex items-center self-center flex-start'>
<ReferenceTypeButton <ReferenceTypeButton
type={ReferenceType.ENTITY} type={ReferenceType.ENTITY}
@ -211,7 +211,7 @@ function DlgEditReference({ hideWindow, items, initial, onSave }: DlgEditReferen
/> />
</div> : null} </div> : null}
{type === ReferenceType.ENTITY ? {type === ReferenceType.ENTITY ?
<div className='flex flex-col gap-2'> <div className='flex flex-col gap-3'>
<ConstituentaPicker <ConstituentaPicker
value={selectedCst} value={selectedCst}
data={items} data={items}
@ -245,11 +245,12 @@ function DlgEditReference({ hideWindow, items, initial, onSave }: DlgEditReferen
{FormButtons} {FormButtons}
<div className='flex items-center gap-10 flex-start'> <div className='flex items-center gap-4 flex-start'>
<Label text='Отсылаемая словоформа'/> <Label text='Отсылаемая словоформа'/>
<SelectMulti <SelectMulti
placeholder='Выберите граммемы' placeholder='Выберите граммемы'
className='flex-grow h-full z-modal-top' className='flex-grow h-full z-modal-top'
menuPlacement='top'
options={gramOptions} options={gramOptions}
value={selectedGrams} value={selectedGrams}
onChange={newValue => setSelectedGrams([...newValue].sort(compareGrammemeOptions))} onChange={newValue => setSelectedGrams([...newValue].sort(compareGrammemeOptions))}