put arrow to the right of the button in process instance table (#1274)

Co-authored-by: burnettk <burnettk@users.noreply.github.com>
This commit is contained in:
Kevin Burnett 2024-03-26 11:55:23 +00:00 committed by GitHub
parent 8a773c81f8
commit 62ba2ed282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

View File

@ -9,6 +9,7 @@ import {
TableHeader,
Stack,
ButtonSet,
TableCell,
} from '@carbon/react';
import { useCallback, useEffect, useRef, useState } from 'react';
import 'react-datepicker/dist/react-datepicker.css';
@ -519,12 +520,14 @@ export default function ProcessInstanceListTable({
const piShowButtonElement = (
<Button
kind="ghost"
className="pi-show-new-tab-button"
target="_blank"
href={piLink}
style={{ width: '60px' }}
style={{ width: '50px' }}
size="sm"
renderIcon={ArrowUpRight}
iconDescription="Open instance in a new tab"
iconDescription="Open instance in new tab"
tooltipPosition="left"
hasIconOnly
/>
);
@ -536,12 +539,12 @@ export default function ProcessInstanceListTable({
];
if (!(processInstance.status in statusesToExcludeTaskButton)) {
currentRow.push(
<td>
<TableCell align="right">
<ButtonSet>
{piShowButtonElement}
{goButtonElement}
{piShowButtonElement}
</ButtonSet>
</td>
</TableCell>
);
} else {
currentRow.push(<td>{piShowButtonElement}</td>);

View File

@ -1023,3 +1023,8 @@ div.onboarding {
.not-editable {
pointer-events: none;
}
.pi-show-new-tab-button {
position: relative;
left: 6px;
}