Skip to content

Commit

Permalink
Merge pull request #100 from buildingSMART/IVS_107_Feedback_widget_ov…
Browse files Browse the repository at this point in the history
…erlaps_with_delete_icon

IVS-107 feedback widget overlaps with delete icon
  • Loading branch information
rw-bsi authored Sep 9, 2024
2 parents 6c580b3 + 7be15ff commit 10b3780
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions frontend/src/DashboardTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function EnhancedTableToolbar({ numSelected, onDelete, onRevalidate }) {
return (
<Toolbar
sx={{
pl: { sm: 2 },
pl: { sm: 1 },
pr: { xs: 1, sm: 1 },
backgroundColor: "none",
...(numSelected > 0 && {
Expand All @@ -193,9 +193,23 @@ function EnhancedTableToolbar({ numSelected, onDelete, onRevalidate }) {
}),
}}
>
{numSelected > 0 && (
<Tooltip title="Delete">
<IconButton onClick={onDelete}>
<DeleteIcon />
</IconButton>
</Tooltip>)}

{/* {numSelected > 0 && (
<Tooltip title="Revalidate">
<IconButton onClick={onRevalidate}>
<ReplayIcon />
</IconButton>
</Tooltip>)} */}

{numSelected > 0 ? (
<Typography
sx={{ flex: '1 1 100%' }}
//sx={{ flex: '1 1 100%' }}
color="inherit"
variant="subtitle1"
component="div"
Expand All @@ -204,28 +218,13 @@ function EnhancedTableToolbar({ numSelected, onDelete, onRevalidate }) {
</Typography>
) : (
<Typography
sx={{ flex: '1 1 100%' }}
// sx={{ flex: '1 1 100%' }}
variant="h6"
id="tableTitle"
component="div"
>

</Typography>
/>
)}

{numSelected > 0 && (
<Tooltip title="Delete">
<IconButton onClick={onDelete}>
<DeleteIcon />
</IconButton>
</Tooltip>)}

{/* {numSelected > 0 && (
<Tooltip title="Revalidate">
<IconButton onClick={onRevalidate}>
<ReplayIcon />
</IconButton>
</Tooltip>)} */}

</Toolbar>
);
}
Expand Down

0 comments on commit 10b3780

Please sign in to comment.