@@ -262,58 +262,62 @@ export const IssueDefaultProperties: React.FC<TIssueDefaultPropertiesProps> = ob
262262 ) }
263263 />
264264 ) }
265- { parentId ? (
266- < CustomMenu
267- customButton = {
268- < button
269- type = "button"
270- className = "flex cursor-pointer items-center justify-between gap-1 rounded border-[0.5px] border-custom-border-300 px-2 py-1.5 text-xs hover:bg-custom-background-80"
271- >
272- { selectedParentIssue ?. project_id && (
273- < IssueIdentifier
274- projectId = { selectedParentIssue . project_id }
275- issueTypeId = { selectedParentIssue . type_id }
276- projectIdentifier = { selectedParentIssue ?. project__identifier }
277- issueSequenceId = { selectedParentIssue . sequence_id }
278- textContainerClassName = "text-xs"
279- />
280- ) }
281- </ button >
282- }
283- placement = "bottom-start"
284- tabIndex = { getIndex ( "parent_id" ) }
285- >
286- < >
287- < CustomMenu . MenuItem className = "!p-1" onClick = { ( ) => setParentIssueListModalOpen ( true ) } >
288- Change parent issue
289- </ CustomMenu . MenuItem >
290- < Controller
291- control = { control }
292- name = "parent_id"
293- render = { ( { field : { onChange } } ) => (
294- < CustomMenu . MenuItem
295- className = "!p-1"
296- onClick = { ( ) => {
297- onChange ( null ) ;
298- handleFormChange ( ) ;
299- } }
300- >
301- Remove parent issue
302- </ CustomMenu . MenuItem >
303- ) }
304- />
305- </ >
306- </ CustomMenu >
307- ) : (
308- < button
309- type = "button"
310- className = "flex cursor-pointer items-center justify-between gap-1 rounded border-[0.5px] border-custom-border-300 px-2 py-1.5 text-xs hover:bg-custom-background-80"
311- onClick = { ( ) => setParentIssueListModalOpen ( true ) }
312- >
313- < LayoutPanelTop className = "h-3 w-3 flex-shrink-0" />
314- < span className = "whitespace-nowrap" > Add parent</ span >
315- </ button >
316- ) }
265+ < div className = "h-7" >
266+ { parentId ? (
267+ < CustomMenu
268+ customButton = {
269+ < button
270+ type = "button"
271+ className = "flex cursor-pointer items-center justify-between gap-1 h-full rounded border-[0.5px] border-custom-border-300 px-2 py-0.5 text-xs hover:bg-custom-background-80"
272+ >
273+ { selectedParentIssue ?. project_id && (
274+ < IssueIdentifier
275+ projectId = { selectedParentIssue . project_id }
276+ issueTypeId = { selectedParentIssue . type_id }
277+ projectIdentifier = { selectedParentIssue ?. project__identifier }
278+ issueSequenceId = { selectedParentIssue . sequence_id }
279+ textContainerClassName = "text-xs"
280+ />
281+ ) }
282+ </ button >
283+ }
284+ placement = "bottom-start"
285+ className = "h-full w-full"
286+ customButtonClassName = "h-full"
287+ tabIndex = { getIndex ( "parent_id" ) }
288+ >
289+ < >
290+ < CustomMenu . MenuItem className = "!p-1" onClick = { ( ) => setParentIssueListModalOpen ( true ) } >
291+ Change parent issue
292+ </ CustomMenu . MenuItem >
293+ < Controller
294+ control = { control }
295+ name = "parent_id"
296+ render = { ( { field : { onChange } } ) => (
297+ < CustomMenu . MenuItem
298+ className = "!p-1"
299+ onClick = { ( ) => {
300+ onChange ( null ) ;
301+ handleFormChange ( ) ;
302+ } }
303+ >
304+ Remove parent issue
305+ </ CustomMenu . MenuItem >
306+ ) }
307+ />
308+ </ >
309+ </ CustomMenu >
310+ ) : (
311+ < button
312+ type = "button"
313+ className = "flex cursor-pointer items-center justify-between gap-1 h-full rounded border-[0.5px] border-custom-border-300 px-2 py-0.5 text-xs hover:bg-custom-background-80"
314+ onClick = { ( ) => setParentIssueListModalOpen ( true ) }
315+ >
316+ < LayoutPanelTop className = "h-3 w-3 flex-shrink-0" />
317+ < span className = "whitespace-nowrap" > Add parent</ span >
318+ </ button >
319+ ) }
320+ </ div >
317321 < Controller
318322 control = { control }
319323 name = "parent_id"
0 commit comments