Skip to content

Commit

Permalink
#1906-tweeked column widths
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinJurcoGlina committed Aug 23, 2024
1 parent 7e5a5c7 commit 820b3e8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 37 deletions.
68 changes: 33 additions & 35 deletions frontend/src/pages/Workflows/WorkflowItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,41 +499,39 @@ export const WorkflowItem = ({
sx={{ backgroundColor: (theme) => theme.palette.tag.main, color: "white" }}
/>
</div>
{tags.length > 1 && (
<div>
<IconButton aria-label="expand" aria-describedby={popoverId} onClick={handleClick}>
{open ? <ExpandLess /> : <ExpandMore />}
</IconButton>
<Popover
id={popoverId}
open={open}
anchorEl={anchorEl}
onClose={handleClose}
anchorOrigin={{
vertical: "top",
horizontal: "left"
}}
transformOrigin={{
vertical: "top",
horizontal: "right"
}}
>
<div className="tags-popover">
{tags.map((tag) => (
<Chip
key={tag}
label={tag}
size="small"
onClick={(event) => {
props.storeWorkflowitemSearchTerm(`tag:${event.target.innerText}`);
}}
sx={{ backgroundColor: (theme) => theme.palette.tag.main, color: "white" }}
/>
))}
</div>
</Popover>
</div>
)}
<div>
<IconButton aria-label="expand" aria-describedby={popoverId} onClick={handleClick}>
{open ? <ExpandLess /> : <ExpandMore />}
</IconButton>
<Popover
id={popoverId}
open={open}
anchorEl={anchorEl}
onClose={handleClose}
anchorOrigin={{
vertical: "top",
horizontal: "left"
}}
transformOrigin={{
vertical: "top",
horizontal: "right"
}}
>
<div className="tags-popover">
{tags.map((tag) => (
<Chip
key={tag}
label={tag}
size="small"
onClick={(event) => {
props.storeWorkflowitemSearchTerm(`tag:${event.target.innerText}`);
}}
sx={{ backgroundColor: (theme) => theme.palette.tag.main, color: "white" }}
/>
))}
</div>
</Popover>
</div>
</div>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Workflows/WorkflowItem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@
}

.action-cell {
width: 10%;
width: 15%;
display: flex;
align-items: center;
}

.tag-cell {
width: 15%;
width: 10%;
display: flex;
align-items: center;
overflow-x: hidden;
Expand Down

0 comments on commit 820b3e8

Please sign in to comment.