Skip to content

Commit 1cede30

Browse files
committed
style: update form layout for better spacing consistency
Changed the layout of form components from using space-y-2 to grid gap-2 for more consistent spacing. Adjusted the profile form to enhance readability and maintain uniform spacing between elements.
1 parent d548b9b commit 1cede30

File tree

20 files changed

+72
-12
lines changed

20 files changed

+72
-12
lines changed

apps/docs/app/examples/forms/_components/profile-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export function ProfileForm(): JSX.Element {
153153
</FormItem>
154154
)}
155155
/>
156-
<div>
156+
<div className="space-y-2">
157157
{fields.map(({ id }, index) => (
158158
<FormField
159159
key={id}
@@ -175,8 +175,8 @@ export function ProfileForm(): JSX.Element {
175175
)}
176176
/>
177177
))}
178+
178179
<Button
179-
className="mt-2"
180180
size="sm"
181181
type="button"
182182
variant="outline"

packages/config-eslint/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefast/eslint-config
22

3+
## 0.1.35
4+
5+
### Patch Changes
6+
7+
- Update form layout for better spacing consistency
8+
39
## 0.1.34
410

511
### Patch Changes

packages/config-eslint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefast/eslint-config",
3-
"version": "0.1.34",
3+
"version": "0.1.35",
44
"bugs": {
55
"url": "https://github.com/codefastlabs/codefast/issues"
66
},

packages/config-tailwind/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefast/config-tailwind
22

3+
## 0.1.35
4+
5+
### Patch Changes
6+
7+
- Update form layout for better spacing consistency
8+
39
## 0.1.34
410

511
### Patch Changes

packages/config-tailwind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefast/config-tailwind",
3-
"version": "0.1.34",
3+
"version": "0.1.35",
44
"bugs": {
55
"url": "https://github.com/codefastlabs/codefast/issues"
66
},

packages/config-typescript/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefast/config-typescript
22

3+
## 0.1.35
4+
5+
### Patch Changes
6+
7+
- Update form layout for better spacing consistency
8+
39
## 0.1.34
410

511
### Patch Changes

packages/config-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefast/config-typescript",
3-
"version": "0.1.34",
3+
"version": "0.1.35",
44
"bugs": {
55
"url": "https://github.com/codefastlabs/codefast/issues"
66
},

packages/hooks/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefast/hooks
22

3+
## 0.1.35
4+
5+
### Patch Changes
6+
7+
- Update form layout for better spacing consistency
8+
39
## 0.1.34
410

511
### Patch Changes

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codefast/hooks",
3-
"version": "0.1.34",
3+
"version": "0.1.35",
44
"bugs": {
55
"url": "https://github.com/codefastlabs/codefast/issues"
66
},

packages/primitive/checkbox-group/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @codefast-ui/checkbox-group
22

3+
## 0.1.35
4+
5+
### Patch Changes
6+
7+
- Update form layout for better spacing consistency
8+
39
## 0.1.34
410

511
### Patch Changes

0 commit comments

Comments
 (0)