fix: Fix thumbnail rendering issues (#2058)

- Closes #2054
This commit is contained in:
Dermot Duffy
2025-05-22 21:21:04 -07:00
committed by GitHub
parent 95c926e237
commit c342c5d529
6 changed files with 45 additions and 26 deletions
@@ -135,8 +135,12 @@ export class ThumbnailDetailsController {
: []),
];
// To avoid duplication, if the event already has a structured 'what' and a
// starttime, the title is omitted from the details.
const includeTitle =
!ViewItemClassifier.isEvent(item) || !item?.getWhat()?.length || !startTime;
this._details = [
...(itemTitle
...(includeTitle && itemTitle
? [
{
title: itemTitle,