Skip to content

Commit aed1209

Browse files
committed
Added wrapping for header if it gets too long
1 parent 0bdeb11 commit aed1209

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@codifycli/ink-form",
33
"type": "module",
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"description": "Complex user-friendly form component for Codify",
66
"main": "lib/index.js",
77
"exports": "./lib/index.js",

src/FormHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const FormHeader: React.FC<
4141
</Box>
4242
</Box>
4343
<Box width="100%">
44-
<Box>
44+
<Box flexWrap='wrap'>
4545
{!props.editingField ? (
4646
sections.map((section, id) => (
4747
<Box key={section.title + id}>

src/demo/Test.tsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,40 @@ export function Test() {
7777
{ type: 'string', name: 'gitUrl', label: 'gitUrl' },
7878
]
7979
},
80+
{
81+
title: "asdf-global2",
82+
fields: [
83+
{ type: 'string', name: 'plugin', label: 'plugin', required: true, description: 'The plugin to install' },
84+
{ type: 'string', name: 'version', label: 'version', required: true, description: 'The version to install' },
85+
],
86+
description: 'Asdf global sets the global version of a asdf installed plugin.'
87+
},
88+
{
89+
title: "asdf-install2",
90+
description: 'Asdf install is responsible for installing an asdf resource',
91+
fields: [
92+
{ type: 'string', name: 'directory', label: 'directory', required: true, description: 'The directory to install.' },
93+
]
94+
},
95+
{
96+
title: "asdf-local2",
97+
description: 'Asdf global sets the local version of a asdf installed plugin.',
98+
fields: [
99+
{ type: 'string', name: 'plugin', label: 'plugin', required: true },
100+
{ type: 'string', name: 'version', label: 'version', required: true },
101+
{ type: 'string', name: 'directory', label: 'directory' },
102+
{ type: 'array', name: 'directories', label: 'directories' },
103+
]
104+
},
105+
{
106+
title: "asdf-plugin2",
107+
// description: 'Asdf plugin installs a plugin.',
108+
fields: [
109+
{ type: 'string', name: 'plugin', label: 'plugin', required: true },
110+
{ type: 'string', name: 'versions', label: 'version'},
111+
{ type: 'string', name: 'gitUrl', label: 'gitUrl' },
112+
]
113+
},
80114
]
81115
}}
82116
/>

0 commit comments

Comments
 (0)