Skip to content

Commit

Permalink
Merge pull request #12 from agentlab/issue-9-form-styles
Browse files Browse the repository at this point in the history
[FIX] GH-9 form fields are more compact now
  • Loading branch information
amivanoff authored Sep 8, 2021
2 parents 27aaf1e + baacaff commit b204431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/AntdFormLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const AntdFormLayout: React.FC<any> = ({
<div style={{ width, height, overflow: 'auto' }} onClick={() => onEdit()}>
<span style={{ padding: '7px', fontSize: '2em' }}>{title}</span>
<LogicalButton form={id} onSave={onSave} onCancel={onCancel} />
<Form {...formItemLayout}>
<Form labelAlign={'left'}>
<AntdVerticalLayoutWithStore
id={`${id}Layout`}
viewKind={viewKind}
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@
color: rgb(255, 255, 255);
background-color: rgba(145, 145, 145, 0.616);
}

.ant-form-item {
margin-bottom: 2px;
}

0 comments on commit b204431

Please sign in to comment.