Skip to content

Commit

Permalink
Merge pull request #73 from RedAtman/dev
Browse files Browse the repository at this point in the history
Fix: Truncate long note bodies in quick panel
  • Loading branch information
RedAtman authored Aug 7, 2024
2 parents 7bf2fac + 9249a7d commit aae18d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def show_quick_panel(first_sync: bool = False):
note,
note.title,
[
note.body,
note.body[:120] + "..." if len(note.body) > 120 else note.body,
# f"tags: {note.d.tags}",
], # type: ignore
f"version:{note.v} | update:{datetime.fromtimestamp(note.d.modificationDate).strftime('%Y-%m-%d %H:%M:%S')}",
Expand Down

0 comments on commit aae18d4

Please sign in to comment.