mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 21:54:09 +00:00
fix: form element alignment in form
This commit is contained in:
committed by
Carlos Valente
parent
7877af571f
commit
e2cbe43a2b
@@ -78,7 +78,7 @@ export default function ProjectCreateForm(props: ProjectCreateFromProps) {
|
|||||||
</div>
|
</div>
|
||||||
</Panel.Title>
|
</Panel.Title>
|
||||||
{error && <Panel.Error>{error}</Panel.Error>}
|
{error && <Panel.Error>{error}</Panel.Error>}
|
||||||
<div className={style.innerColumn}>
|
<Panel.Section className={style.innerColumn}>
|
||||||
<label>
|
<label>
|
||||||
Project title
|
Project title
|
||||||
<Input
|
<Input
|
||||||
@@ -145,7 +145,7 @@ export default function ProjectCreateForm(props: ProjectCreateFromProps) {
|
|||||||
{...register('backstageUrl')}
|
{...register('backstageUrl')}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</Panel.Section>
|
||||||
</Panel.Section>
|
</Panel.Section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { useQueryClient } from '@tanstack/react-query';
|
|||||||
import { PROJECT_DATA } from '../../../../common/api/constants';
|
import { PROJECT_DATA } from '../../../../common/api/constants';
|
||||||
import { getDb, patchData } from '../../../../common/api/db';
|
import { getDb, patchData } from '../../../../common/api/db';
|
||||||
import { maybeAxiosError } from '../../../../common/api/utils';
|
import { maybeAxiosError } from '../../../../common/api/utils';
|
||||||
|
import { cx } from '../../../../common/utils/styleUtils';
|
||||||
import * as Panel from '../PanelUtils';
|
import * as Panel from '../PanelUtils';
|
||||||
|
|
||||||
import { makeProjectPatch } from './project.utils';
|
import { makeProjectPatch } from './project.utils';
|
||||||
@@ -92,7 +93,7 @@ export default function ProjectMergeForm(props: ProjectMergeFromProps) {
|
|||||||
</div>
|
</div>
|
||||||
</Panel.Title>
|
</Panel.Title>
|
||||||
{error && <Panel.Error>{error}</Panel.Error>}
|
{error && <Panel.Error>{error}</Panel.Error>}
|
||||||
<div className={style.innerColumn}>
|
<Panel.Section className={cx([style.innerColumn, style.inlineLabels])}>
|
||||||
<Panel.Description>
|
<Panel.Description>
|
||||||
Select partial data from {`"${fileName}"`} to merge into the current project.
|
Select partial data from {`"${fileName}"`} to merge into the current project.
|
||||||
<br /> This process is irreversible.
|
<br /> This process is irreversible.
|
||||||
@@ -121,7 +122,7 @@ export default function ProjectMergeForm(props: ProjectMergeFromProps) {
|
|||||||
<Switch variant='ontime' {...register('http')} />
|
<Switch variant='ontime' {...register('http')} />
|
||||||
HTTP Integration
|
HTTP Integration
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</Panel.Section>
|
||||||
</Panel.Section>
|
</Panel.Section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,9 +53,11 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inlineLabels {
|
||||||
label {
|
label {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1em;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user