Analysis grid: a tag is capped at 130px wide, so a long name is cut short even when the Tags column has room

Open Beginner friendly
#2,964 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
69/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
css, python
Domain
frontend

Research direction

Start with variantgrid/static_files/default_static/css/global/_grids.scss and inspect the grid tag's max-width alongside the resizing behavior described for issue #2904. Check how the tag's delete X stays visible as the Tags column grows. Done when a long tag can use available cell width without hiding its X, while default-width tags retain their current appearance.

Written by the indexing model from the issue text.

Description

🤖 Written by Claude

Found while agent-testing #2904.

In the analysis grid's Tags column, a tag is never drawn wider than 130px, however wide the column is (max-width: 130px on the grid tag in variantgrid/static_files/default_static/css/global/_grids.scss). So a tag with a very long name is shortened with "…" even when its cell has room to show the whole name, for example a row with one tag in a column dragged out to 400px.

This is the existing cap doing what it was written to do, not a regression from #2904. That work made tags share the column when they don't fit, and refit when the column is resized. The cap is what stops them using spare room in the other direction.

Expected: when the cell has room, a tag grows to show its full name. The cap should apply only when tags have to share the width.

To reproduce

  1. Open an analysis and select a node whose grid has a row with one tag that has a long name (30 or more characters).
  2. Drag the Tags column's right edge out until it is much wider than the tag.
  3. The tag stays at 130px with its name cut short. Hovering it shows the full name.

To consider: the cap is there so one long name can't take the whole cell and push the tag's delete X out of view, and it keeps the default-width column tidy. So a fix should let a tag grow only as far as the cell allows with its X still visible, and should not change how tags look at the default width.

Shariant is not affected: it has no analyses.

Dominant language
Python
Stars
31
Forks
4
Avg merge
4h 52m
Merged PRs (30d)
183

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SACGF/variantgrid

All issues in SACGF/variantgrid

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.