From 81bfd5b68c9f6f8837ec82e73158b53943147b13 Mon Sep 17 00:00:00 2001 From: Steven Marks Date: Sun, 28 Jan 2024 09:47:54 +0000 Subject: [PATCH] feat: add ... to title length when trimmed closes #1399 --- src/lib/common.html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/common.html.ts b/src/lib/common.html.ts index b6813b84..0023d16f 100644 --- a/src/lib/common.html.ts +++ b/src/lib/common.html.ts @@ -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`