bug: battery popout text field exceeds UI container #157

Closed
opened 2026-09-05 16:35:51 +02:00 by AramJonghu · 3 comments
Collaborator

What happened

image.png

As seen in the image; the 2nd entry exceeds the UI container and past the battery icon too.

What should happen

A few ways I can see to have this shown instead.

  1. Have it truncate the end part.
  2. Extend the container size.
  3. Have the text move; similar to the media title view.

Steps to reproduce

1. Connecting any device that has a long name.
2. View battery/power module by hovering cursor over module.

OS

Artix

Other OS (if "Other" above)

No response

Init system

non-systemd (openrc / runit / s6 / ...)

Other init system (if "non-systemd" above)

openrc

Qt version

6.11.2

Branch / commit

main

Logs / backtrace / screenshots

No response

Found a workaround?

No response

### What happened <img width="231" alt="image.png" src="attachments/95c06273-f382-4a72-b39e-c9aaf3dc3dc5"> As seen in the image; the 2nd entry exceeds the UI container and past the battery icon too. ### What should happen A few ways I can see to have this shown instead. 1. Have it truncate the end part. 2. Extend the container size. 3. Have the text move; similar to the media title view. ### Steps to reproduce ```shell 1. Connecting any device that has a long name. 2. View battery/power module by hovering cursor over module. ``` ### OS Artix ### Other OS (if "Other" above) _No response_ ### Init system non-systemd (openrc / runit / s6 / ...) ### Other init system (if "non-systemd" above) openrc ### Qt version 6.11.2 ### Branch / commit main ### Logs / backtrace / screenshots _No response_ ### Found a workaround? _No response_
AramJonghu added the bug label 2026-09-05 16:35:51 +02:00
AramJonghu added this to the Zshell board project 2026-09-05 16:35:51 +02:00
AramJonghu added reference main 2026-09-05 16:36:08 +02:00
Owner

Hmm. Since the popout is largely sized for the power mode swapper rather than the devices, I'll probably make the text elide if its name is too long to fit within the view. I don't have a device that has a name long enough for this so I can't test myself, but I'll push a patch that should fix it.

Hmm. Since the popout is largely sized for the power mode swapper rather than the devices, I'll probably make the text elide if its name is too long to fit within the view. I don't have a device that has a name long enough for this so I can't test myself, but I'll push a patch that should fix it.
Author
Collaborator

Could you not double print the same device name on the same line to check? I will check some time and report back.

Could you not double print the same device name on the same line to check? I will check some time and report back.
Owner

Yeah I did manage to test it myself, but I also accidentally left the test code in when I pushed yesterday. That's fixed now though, so I'll close this issue.

Yeah I did manage to test it myself, but I also accidentally left the test code in when I pushed yesterday. That's fixed now though, so I'll close this issue.
zach closed this issue 2026-09-19 09:10:19 +02:00
AramJonghu moved this to Done in Zshell board on 2026-10-14 00:46:12 +02:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: zach/z-bar-qt#157