Skip to content

Truncate long names instead of running off screen - #389

Open
johnmaguire wants to merge 2 commits into
mainfrom
truncate-long-names
Open

Truncate long names instead of running off screen#389
johnmaguire wants to merge 2 commits into
mainfrom
truncate-long-names

Conversation

@johnmaguire

@johnmaguire johnmaguire commented Jul 24, 2026

Copy link
Copy Markdown
Member

Long names could run past the right edge of the screen. Two places lay a
name out in a Row with no width constraint, so the text overlapped the
row's chevron and continued off screen:

  • Active/Pending Tunnels - the cert name (site_tunnels_screen.dart)
  • Firewall Rule - a group name chip (pill_chip.dart)

Both now ellipsize at the edge.

Screenshots

360dp wide, the common Android width. The red bar and hazard stripes are
Flutter's debug overflow indicator.

Active Tunnels

before after
tunnels-before tunnels-after

Firewall Rule groups

before after
image image

A cert name on the tunnels list and a group name on the firewall rule
screen were both laid out in a Row with no width constraint, so a long
value overlapped the row's chevron and ran past the right edge.

Both now ellipsize at the edge. Measured with the bundled Inter metrics
at 320/360/390dp: a 53 char cert name overflowed by 73-143px, and a 45
char group name by 20-60px at 360dp and below.
@johnmaguire
johnmaguire marked this pull request as ready for review July 24, 2026 21:42
A truncated group name hides the part that distinguishes it: rules
scoped to engineering-production-us-east-database-servers and
engineering-production-us-west-database-servers ellipsize to the same
string. The chip now wraps to at most three lines, keeping ellipsis only
as a backstop past that.

Setting overflow without maxLines is what pinned the label to one line,
so the wrap needs both. Names with no whitespace or hyphen to break on
still fit: Flutter breaks mid-token rather than overflowing the chip.
@johnmaguire

Copy link
Copy Markdown
Member Author

Updated to wrap group names
image

@johnmaguire
johnmaguire requested a review from nbrownus July 28, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant