diff --git a/src/components/charts/chart.ts b/src/components/charts/chart.ts index ca2cad07..ef5dcc8f 100644 --- a/src/components/charts/chart.ts +++ b/src/components/charts/chart.ts @@ -737,13 +737,8 @@ export default class AstraChart extends ClassifiedElement { // Line break (double space followed by a newline) markdown = markdown.replace(/ \n/g, '
') - return html`
- ${unsafeHTML(markdown)} -
` + // add `truncate` here to get ellipsis working, but at the cost of losing visibility of most of the content + return html`
${unsafeHTML(markdown)}
` } private renderAsSingleValue() { diff --git a/src/components/charts/composed.ts b/src/components/charts/composed.ts index bae70c0e..28cbb5e8 100644 --- a/src/components/charts/composed.ts +++ b/src/components/charts/composed.ts @@ -201,14 +201,16 @@ export default class AstraComposedChart extends AstraChart { >
- ${layer?.type === 'single_value' - ? // Single value charts show the highlights at the bottom of the card - html`${headerSection} ${chartSection}` // ${highlightSection} - Until more meaningful highlights are available, disabling for single value - : // All other charts show the highlights above the chart rendering - html`
${headerSection} ${highlightSection}
- ${chartSection}`} +
+ ${layer?.type === 'single_value' + ? // Single value charts show the highlights at the bottom of the card + html`${headerSection} ${chartSection}` // ${highlightSection} - Until more meaningful highlights are available, disabling for single value + : // All other charts show the highlights above the chart rendering + html`
${headerSection} ${highlightSection}
+ ${chartSection}`} +
`