Skip to content

Commit

Permalink
feat: add ... to title length when trimmed
Browse files Browse the repository at this point in the history
closes #1399
  • Loading branch information
marksie1988 committed Jan 28, 2024
1 parent dbe7c3c commit 81bfd5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/common.html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function getTitleHTML(config: atomicCardConfig, event: EventClass, hass:
let { title } = event;

if (!isHtml(event.title) && config.titleLength && event.title.length > config.titleLength) {
title = event.title.slice(0, config.titleLength);
title = event.title.slice(0, config.titleLength) + '...';
}
if (config.disableEventLink || event.htmlLink === undefined || event.htmlLink === null) {
return html`
Expand Down

0 comments on commit 81bfd5b

Please sign in to comment.