protonscr

Notes title always inherits last line of note body, so stray newlines create empty note titles

steamopen overlay
ValveSoftware/steam-for-linux#9448 · opened 2023-05-03 by aclist · updated 2023-05-03 · 0 comments · github
Aaclist 2023-05-03 github

Your system information

  • Steam client version (build number or date): 1683078372
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: [Yes/No] Yes
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

Notes created in the overlay do not retain a canonical title, such as the first line of the body being the title. The title always updates to reflect the last line written. The consequence of this is that if the last line is a newline with no text, the title of the note becomes empty.

Steps for reproducing this issue:

  1. Create a new note
  2. Type some string on the first line
  3. Add a newline
  4. Navigate off the note and onto a new/other note if necessary
  5. Note title becomes empty

Is this intentional? Not only does it empty the title, but it affects the padding around the note in the sidebar, so if you have any notes with stray newlines in between other notes, they not only have no title, but they are difficult to target because they are 1/2 the height of the other note buttons.

This is not strictly cosmetic, as the JSON itself is getting updated with a blank value for the title key.

Nothing extracted yet.