agenda: Change clockinfo title truncation to preserve images.

The previous commit to remove truncation caused long titles that were not well
handled by some clocks.  This commit instead uses truncation based on string
wrapping, which maintains limited-length titles, but now preserves images
(e.g. emojis) embedded in the titles.
master
Randy Heydon 2025-06-19 15:29:05 -04:00
parent 3d10dc9745
commit e2971e538e
2 changed files with 2 additions and 2 deletions

View File

@ -18,4 +18,4 @@
0.16: Correct date for all day events in negative timezones, improve locale display
0.17: Fixed "Today" and "Tomorrow" labels displaying in non-current weeks
0.18: Correct date in clockinfo for all-day events in negative timezones
0.19: Show full title in clockinfo instead of truncated
0.19: Change clockinfo title truncation to preserve images

View File

@ -64,7 +64,7 @@
agenda.forEach((entry, i) => {
var title = entry.title;
var title = g.setFont("6x8").wrapString(entry.title,100)[0];
// All day events are always in UTC and always start at 00:00:00, so we
// need to "undo" the timezone offsetting to make sure that the day is
// correct.