swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.87k stars 91 forks source link

in Two-lines Title, the first line is cropped #323

Closed snakewa closed 2 years ago

snakewa commented 2 years ago

Describe the bug in Two-lines Title, the first line is cropped

To Reproduce Steps to reproduce the behavior:

  1. Just follow readme instruction to use \n

Expected behavior Line 1 should be displayed without cropped

Screenshots

Screen Shot 2022-06-10 at 11 15 22 AM

Environment:

Plugin Example:

!/usr/bin/env sh

echo 'Line 1\n Line2| size=10' echo '---'

Additional Context:

snakewa commented 2 years ago

or possible to have some more parameter line marginTop ? now like a negative value of marginTop. And I know possbile different menu bar height for lastst macbooks with notch

melonamin commented 2 years ago

Hi @snakewa,

the README is outdated, I've decided to not support two line tilte at this moment, I couldn't find a good way to implement it without overcomplicating the code.