@@ -137,7 +137,7 @@ export default function HeuristicsLayout(props: any) {
137137 </ div >
138138 < div className = "w-full overflow-hidden" >
139139 < div className = { `grid gap-4 ${ isHeaderNormal ? 'grid-cols-2' : 'grid-cols-1' } ` } >
140- { isHeaderNormal && < div className = "flex items-center mt-2" >
140+ { isHeaderNormal && < div className = "flex items-start mt-2" >
141141 < Tooltip color = "invert" placement = "bottom" content = { TOOLTIPS_DICT . HEURISTICS . EDIT_NAME } >
142142 < button onClick = { ( ) => openProperty ( true , HeuristicsProperty . NAME ) }
143143 className = "flex-shrink-0 bg-white text-gray-700 text-xs font-semibold mr-3 px-4 py-2 rounded-md border border-gray-300 block float-left hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" >
@@ -149,22 +149,20 @@ export default function HeuristicsLayout(props: any) {
149149 ? ( < input type = "text" value = { currentHeuristic . name } ref = { nameRef } onInput = { ( e : any ) => changeHeuristic ( e . target . value , HeuristicsProperty . NAME ) }
150150 onBlur = { ( ) => openProperty ( false , HeuristicsProperty . NAME ) } onKeyDown = { ( e ) => { if ( e . key == 'Enter' ) openProperty ( false , HeuristicsProperty . NAME ) } }
151151 className = "h-8 w-full border-gray-300 rounded-md placeholder-italic border text-gray-700 pl-4 placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 focus:ring-offset-gray-100" /> )
152- : ( < div className = "mr-4 text-sm leading-5 font-medium text-gray-500 inline-block" > { currentHeuristic . name } </ div > ) }
152+ : ( < div className = "mr-4 text-sm leading-5 font-medium text-gray-500 inline-block " style = { { marginTop : '6px' } } > { currentHeuristic . name } </ div > ) }
153153 </ div >
154154 </ div > }
155- < div className = "flex items-center mt-2" >
156- < Tooltip color = "invert" placement = "bottom" content = { TOOLTIPS_DICT . HEURISTICS . EDIT_DESCRIPTION } >
157- < button onClick = { ( ) => openProperty ( true , HeuristicsProperty . DESCRIPTION ) }
158- className = "flex-shrink-0 bg-white text-gray-700 text-xs font-semibold mr-3 px-4 py-2 rounded-md border border-gray-300 block float-left hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" >
159- Edit description
160- </ button >
161- </ Tooltip >
155+ < div className = "flex items-start mt-2" >
156+ < button onClick = { ( ) => openProperty ( true , HeuristicsProperty . DESCRIPTION ) }
157+ className = "flex-shrink-0 bg-white text-gray-700 text-xs font-semibold mr-3 px-4 py-2 rounded-md border border-gray-300 block float-left hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" >
158+ Edit description
159+ </ button >
162160 < div className = "flex-grow" onDoubleClick = { ( ) => openProperty ( true , HeuristicsProperty . DESCRIPTION ) } >
163161 { isDescriptionOpen
164162 ? ( < input type = "text" value = { currentHeuristic . description } ref = { descriptionRef } onInput = { ( e : any ) => changeHeuristic ( e . target . value , HeuristicsProperty . DESCRIPTION ) }
165163 onBlur = { ( ) => openProperty ( false , HeuristicsProperty . DESCRIPTION ) } onKeyDown = { ( e ) => { if ( e . key == 'Enter' ) openProperty ( false , HeuristicsProperty . DESCRIPTION ) } }
166164 className = "h-8 w-full border-gray-300 rounded-md placeholder-italic border text-gray-700 pl-4 placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 focus:ring-offset-gray-100" /> )
167- : ( < div className = "mr-4 text-sm leading-5 font-medium text-gray-500 inline-block" > { currentHeuristic . description } </ div > ) }
165+ : ( < div className = "mr-4 text-sm leading-5 font-medium text-gray-500 inline-block " style = { { marginTop : '6px' } } > { currentHeuristic . description } </ div > ) }
168166 </ div >
169167 </ div >
170168 </ div >
0 commit comments