Skip to content

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

@kasra73

Description

@kasra73

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! 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions