elementary / elementary/panel-bluetooth

Indicator popover has no shown device name character limit

Open
#213 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
22
Forks
12
Avg merge
1d 23h
Merged PRs (30d)
5

Description

### What Happened?

There is no character cap for shown Bluetooth device name, allowing the indicator popover to get comically wide, to the extent of surpassing the display width.

### Steps to Reproduce

1. Pair a Bluetooth device with extremely long name

![изображение](https://github.com/elementary/wingpanel-indicator-bluetooth/assets/71165491/338faed0-981a-4798-9d51-3a95ecc1c962)

2. Open the indicator popover

![изображение](https://github.com/elementary/wingpanel-indicator-bluetooth/assets/71165491/633b5eb0-b311-4230-a313-43a10dcd75ed)

(I also made my display resolution a little smaller, just to demonstrate it might become wider that the display width itself. This is, however, is not necessary to reproduce the issue)

### Expected Behavior

Device name gets capped after a reasonable amount of characters (like it happens in wingpanel-indicator-sound, maybe 1.5 to 2 times longer).

### OS Version

7.x (Horus)

### Software Version

Latest release (I have run all updates)

### Log Output

_No response_

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.