# Line label covers a group title: how to fix it

The message means a line's label lands on a group's title, the name printed in the top-left corner of the group's dashed area.


```json
{"title": "Parcel service",
 "row_gap": 44,
 "columns": [[{"id": "web", "title": "Tracking page", "tiles": ["Track a parcel"]},
              {"id": "depot", "title": "Depot", "tiles": ["Sorting belt"]}]],
 "groups": [{"label": "Run by the depot team", "members": ["depot"]}],
 "links": [{"from": "web", "to": "depot", "label": "scans", "start": "bottom", "end": "top"}]}

```

![Parcel service](https://open-diagram.dev/images/pages/problems-label-covers-group-title-1.svg)

The check: 1 layout problem(s)

```text
the label 'scans' on line 'web' -> 'depot' sits on the title of group 'Run by the depot team'; move the label's line, or the group
```


## Why does it happen?

The line is too short for its label to clear the group's title. A group's border and title take about 40 px above its first block: 20 px of padding, then a row for the title. Here the two blocks are 44 px apart, so the title sits across the middle of the line.

open-diagram looks along each line for a spot clear of blocks, group titles, other lines and other labels. On this line no spot is clear, so the label stays in the middle and the check reports the title it covers.

The line itself may cross the title. Titles are drawn over lines, on a backing, so the line reads as passing behind.

## How do I fix it?

Give the label a stretch of line away from the title.

1. Give the line a different start or end side, so it enters the group away from its title.
2. Or route the line through a lane.
3. Or move the group's blocks further from the line's other end.
4. Run the check again.

Here the rows move 90 px apart, so the label finds a spot above the group. The check reports 0 layout problems:


```json
{"title": "Parcel service",
 "row_gap": 90,
 "columns": [[{"id": "web", "title": "Tracking page", "tiles": ["Track a parcel"]},
              {"id": "depot", "title": "Depot", "tiles": ["Sorting belt"]}]],
 "groups": [{"label": "Run by the depot team", "members": ["depot"]}],
 "links": [{"from": "web", "to": "depot", "label": "scans", "start": "bottom", "end": "top"}]}

```

![Parcel service](https://open-diagram.dev/images/pages/problems-label-covers-group-title-2.svg)

The check: 0 layout problems


In Python, the rows are spaced with `row_gap` in `columns()`. A label that lands on a block gets its own message.

Updated November 25, 2026. Web page: https://open-diagram.dev/problems/label-covers-group-title.html

See also:

- [Line label covers a box in a diagram: how to fix it](https://open-diagram.dev/problems/line-label-covers-a-box.md)
- [Diagram group covers a box that is not in it: how to fix it](https://open-diagram.dev/problems/group-covers-a-box.md)
- [Diagram boxes too close or overlapping: how to fix it](https://open-diagram.dev/problems/boxes-too-close.md)
