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

Ellipsis ignores line break #912

Open
moritz-t-w opened this issue Feb 7, 2024 · 4 comments
Open

Ellipsis ignores line break #912

moritz-t-w opened this issue Feb 7, 2024 · 4 comments

Comments

@moritz-t-w
Copy link

moritz-t-w commented Feb 7, 2024

Unternehmenskreis ❘ Basisprojekt  (Entwicklung / Fortbildung)  "Time Tracker" \n10:30 - 11:09                                                    󰑐  Neu Laden| font="JetBrainsMono Nerd Font" | trim="false"

Expected:
First, line breaks are considered, then it calculates if an ellipsis is neccesary. Therefore two long lines get displayed.
Actual:
Seemingly it first checks if an ellipsis is necessary, without splitting by line breaks. Now the part where a line break was is replaced with and everything is rendered on one line.
Screenshot

@moritz-t-w
Copy link
Author

Argos handles this correctly:
image

@moritz-t-w moritz-t-w changed the title Elipsis ignores line break Ellipsis ignores line break Feb 7, 2024
@moritz-t-w
Copy link
Author

adding an arbitrarily high length attribute does not work around this.

@moritz-t-w
Copy link
Author

moritz-t-w commented Feb 7, 2024

It only happens to the first line (after the title) for some reason. The others get their line breaks rendered even tho they're also full length

01:04:15 - P#28 | font="JetBrainsMono Nerd Font" | trim=false | bash="true" | terminal=false
---
Unternehmenskreis ❘ Basisprojekt  (Entwicklung / Fortbildung)  "Time Tracker" \n10:30 - 11:34                                                    󰑐  Neu Laden| font="JetBrainsMono Nerd Font" | trim=false | bash="curl" | terminal=false | refresh=true | param1="http://localhost:9999/refresh"
---
Überzeit:          Arbeitszeit insgesamt:\n󰔟  Heute: -05:52h │██████████▍                            │       2/8 Stunden\n󰔟  KW 06: -03:51h │███████████████████▋                   │     20/40 Stunden\n󰔟  Total: -06:28h │██████▉                                │  370/2096 Stunden| font="JetBrainsMono Nerd Font" | trim=false | bash="true" | terminal=false
󰩈  Feierabend: 16:22 oder, wegen Unterzeit: 16:58| font="JetBrainsMono Nerd Font" | trim=false | bash="true" | terminal=false

The one linebreak that isn't rendered is at 3:79
The working ones are at 5:42, 5:121 and 5:200,

@moritz-t-w
Copy link
Author

Bildschirmfoto 2024-02-07 um 13 04 59 Weirdly, the second menu entry shows a tooltip when hovering but the first one doesn't

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