@@ -136,7 +136,7 @@ export default function HeuristicsLayout(props: any) {
136136 </ div >
137137 < div className = "w-full overflow-hidden" >
138138 < div className = { `grid gap-4 ${ isHeaderNormal ? 'grid-cols-2' : 'grid-cols-1' } ` } >
139- { isHeaderNormal && < div className = "flex items-center mt-2" >
139+ { isHeaderNormal && < div className = "flex items-start mt-2" >
140140 < Tooltip color = "invert" placement = "bottom" content = { TOOLTIPS_DICT . HEURISTICS . EDIT_NAME } >
141141 < button onClick = { ( ) => openProperty ( true , HeuristicsProperty . NAME ) }
142142 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" >
@@ -148,22 +148,20 @@ export default function HeuristicsLayout(props: any) {
148148 ? ( < input type = "text" value = { currentHeuristic . name } ref = { nameRef } onInput = { ( e : any ) => changeHeuristic ( e . target . value , HeuristicsProperty . NAME ) }
149149 onBlur = { ( ) => openProperty ( false , HeuristicsProperty . NAME ) } onKeyDown = { ( e ) => { if ( e . key == 'Enter' ) openProperty ( false , HeuristicsProperty . NAME ) } }
150150 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" /> )
151- : ( < div className = "mr-4 text-sm leading-5 font-medium text-gray-500 inline-block" > { currentHeuristic . name } </ div > ) }
151+ : ( < div className = "mr-4 text-sm leading-5 font-medium text-gray-500 inline-block " style = { { marginTop : '6px' } } > { currentHeuristic . name } </ div > ) }
152152 </ div >
153153 </ div > }
154- < div className = "flex items-center mt-2" >
155- < Tooltip color = "invert" placement = "bottom" content = { TOOLTIPS_DICT . HEURISTICS . EDIT_DESCRIPTION } >
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 >
160- </ Tooltip >
154+ < div className = "flex items-start mt-2" >
155+ < button onClick = { ( ) => openProperty ( true , HeuristicsProperty . DESCRIPTION ) }
156+ 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" >
157+ Edit description
158+ </ button >
161159 < div className = "flex-grow" onDoubleClick = { ( ) => openProperty ( true , HeuristicsProperty . DESCRIPTION ) } >
162160 { isDescriptionOpen
163161 ? ( < input type = "text" value = { currentHeuristic . description } ref = { descriptionRef } onInput = { ( e : any ) => changeHeuristic ( e . target . value , HeuristicsProperty . DESCRIPTION ) }
164162 onBlur = { ( ) => openProperty ( false , HeuristicsProperty . DESCRIPTION ) } onKeyDown = { ( e ) => { if ( e . key == 'Enter' ) openProperty ( false , HeuristicsProperty . DESCRIPTION ) } }
165163 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" /> )
166- : ( < div className = "mr-4 text-sm leading-5 font-medium text-gray-500 inline-block" > { currentHeuristic . description } </ div > ) }
164+ : ( < div className = "mr-4 text-sm leading-5 font-medium text-gray-500 inline-block " style = { { marginTop : '6px' } } > { currentHeuristic . description } </ div > ) }
167165 </ div >
168166 </ div >
169167 </ div >
0 commit comments