Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one tag is shown in the workflow item overview even if more are present #1906

Closed
jzakotnik opened this issue Jul 5, 2024 · 3 comments · Fixed by #1946
Closed

Only one tag is shown in the workflow item overview even if more are present #1906

jzakotnik opened this issue Jul 5, 2024 · 3 comments · Fixed by #1946
Assignees
Labels
bug Something isn't working

Comments

@jzakotnik
Copy link
Contributor

We added various tags to a workflow item, but only the first is rendered. Seems in the code only 1 tag is used?

<div className="tag-cell">
                  {tags.length > 0 && (
                    <Chip
                      label={tags[0]}
                      size="small"
                      onClick={(event) => {
                        props.storeWorkflowitemSearchTerm(`tag:${event.target.innerText}`);
                      }}
                      sx={{ backgroundColor: (theme) => theme.palette.tag.main, color: "white" }}
                    />
                  )}
                </div>

image

@jzakotnik jzakotnik added the bug Something isn't working label Jul 5, 2024
@SamuelPull
Copy link
Collaborator

This is mainly due to the table size. Perhaps add and inidicator that there are more tags and display them on mouse hover? (Wouldn't work with phones and tablets)

@jzakotnik
Copy link
Contributor Author

But if there's space on a large screen, they could still be displayed

@jzakotnik
Copy link
Contributor Author

Quick workaround: adding +x if there are more tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

3 participants