@@ -151,7 +151,7 @@ export const Form: React.FC<FormProps> = props => {
151151 < FormHeader { ...props } headerRef = { headerRef } form = { form } currentTab = { currentTab } onChangeTab = { onChangeTab } editingField = { editingField } />
152152 < ScrollArea height = { fullHeight - headerHeight } key = { currentTab } isStart = { focusedElement === - 1 } numFields = { sections [ currentTab ] . fields . length } editingMode = { ! ! editingField } >
153153 < Box flexDirection = 'row' >
154- < Box flexDirection = 'column' width = '80 %' >
154+ < Box flexDirection = 'column' width = '70 %' >
155155 { ! editingField && (
156156 < Box flexDirection = 'column' >
157157 < Box marginLeft = { 1 } marginTop = { 1 } >
@@ -182,27 +182,30 @@ export const Form: React.FC<FormProps> = props => {
182182 ) }
183183 </ Box >
184184 </ Box >
185-
186- < Box flexDirection = "column" >
187- { ! editingField && sections [ currentTab ] . description && (
188- < Box marginX = { 1 } marginTop = { 1 } flexDirection = 'column' >
189- < Text underline > Description:</ Text >
190- < DescriptionRenderer description = { sections [ currentTab ] ?. description } />
191- </ Box >
192- ) }
185+ < Box flexDirection = "column" width = "30%" >
186+ {
187+ ! editingField && sections [ currentTab ] . fields [ focusedElement ] ?. description && (
188+ < Box flexDirection = "column" >
189+ < Text > </ Text >
190+ < Text underline > { upperFirstLetter ( sections [ currentTab ] . fields [ focusedElement ] ?. label ) } :</ Text >
191+ < DescriptionRenderer description = { sections [ currentTab ] . fields [ focusedElement ] ?. description } />
192+ </ Box >
193+ )
194+ }
193195 </ Box >
194196
195197 </ Box >
196198 { ! editingField && (
197199 < Box flexDirection = 'column' marginTop = { 1 } >
198200 < Box flexDirection = "row" >
199- < Button label = "[A]dd resource" id = { 'addButton' } onClicked = { ( ) => duplicateCurrentSection ( ) } margin = { 0 } padding = { 0 } />
200- < Button label = "[R]emove resource" id = { 'removeButton' } isEnabled = { sections . length > 1 } onClicked = { ( ) => removeCurrentSection ( ) } margin = { 0 } padding = { 0 } />
201+ < Button label = "[D]uplicate resource" id = { 'addButton' } onClicked = { ( ) => duplicateCurrentSection ( ) } />
202+ < Button label = "[R]emove resource" id = { 'removeButton' } isEnabled = { sections . length > 1 } onClicked = { ( ) => removeCurrentSection ( ) } />
201203 < SubmitButton canSubmit = { canSubmitForm } onSubmit = { onSubmitForm } />
202204 </ Box >
205+ < Text dimColor color = 'gray' > Provide all required information (< Text color = "red" > *</ Text > ) to submit.</ Text >
203206 < Text dimColor color = 'gray' > Up/down: navigate options.</ Text >
204207 < Text dimColor color = 'gray' > Left/right: navigate between resources.</ Text >
205- < Text dimColor color = 'gray' > Enter: select or edit</ Text >
208+ < Text dimColor color = 'gray' > Enter: select or edit. </ Text >
206209 </ Box >
207210
208211 // </Box>
0 commit comments