Skip to content

Commit e2971e5

Browse files
committed
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.
1 parent 3d10dc9 commit e2971e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/agenda/ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
0.16: Correct date for all day events in negative timezones, improve locale display
1919
0.17: Fixed "Today" and "Tomorrow" labels displaying in non-current weeks
2020
0.18: Correct date in clockinfo for all-day events in negative timezones
21-
0.19: Show full title in clockinfo instead of truncated
21+
0.19: Change clockinfo title truncation to preserve images

apps/agenda/agenda.clkinfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
agenda.forEach((entry, i) => {
6666

67-
var title = entry.title;
67+
var title = g.setFont("6x8").wrapString(entry.title,100)[0];
6868
// All day events are always in UTC and always start at 00:00:00, so we
6969
// need to "undo" the timezone offsetting to make sure that the day is
7070
// correct.

0 commit comments

Comments
 (0)