Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical Alignment Issue in Multiline Text (v2.1.7-beta) #933

Open
kasra73 opened this issue Feb 8, 2025 · 0 comments
Open

Vertical Alignment Issue in Multiline Text (v2.1.7-beta) #933

kasra73 opened this issue Feb 8, 2025 · 0 comments

Comments

@kasra73
Copy link

kasra73 commented Feb 8, 2025

Description:
First, thanks for the great project! I’m using xbar v2.1.7-beta on macOS 15.3 to create a network monitoring extension, but I’ve noticed a vertical alignment issue when displaying multiline text. The text appears misaligned, making the menu look inconsistent and harder to read.

Here’s an example of my extension’s output:

297 KB/s ▼ ▮▯▯▯\n 36 KB/s ▲ ▮▯▯▯ | size=8
---
en0:\t↓297.42KB/s\n\t↑36.28KB/s | color='#3487c7' font='Menlo' size=8

Screenshot:
Screenshot
Repository:
[🔗 xbar-advanced-network-monitor](https://github.com/kasra73/xbar-advanced-network-monitor)

Steps to Reproduce:

  1. Install xbar v2.1.7-beta on macOS 15.3.
  2. Add a network monitoring extension that outputs multiline text with ANSI escape codes and special characters.
  3. Observe that the vertical alignment of the text is inconsistent.

Expected Behavior:

  • Multiline text should be properly aligned, ensuring readability and consistency.
  • ANSI escape codes for colors and special characters should not affect text placement.

Actual Behavior:

  • The text appears misaligned, making it difficult to read, especially when using font size settings.

Environment:

  • macOS Version: 15.3
  • xbar Version: v2.1.7-beta
  • Extension Type: Network monitoring extension

Let me know if you need any more details. Thanks again for your work on xbar! 🚀

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

No branches or pull requests

1 participant