Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feat: fixed aligning width of kpi's descriptions (#4877)
Browse files Browse the repository at this point in the history
Co-authored-by: VWSCoronaDashboard27 <[email protected]>
  • Loading branch information
DariaKwork and VWSCoronaDashboard27 authored Sep 25, 2023
1 parent 9668a2a commit cee2179
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/app/src/components/kpi/bordered-kpi-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export const BorderedKpiSection = ({ title, description, source, dateOrRange, ti

return (
<KpiTile title={title} hasNoPaddingBottom metadata={metadata}>
<Markdown content={description} />
<Box maxWidth="maxWidthText">
<Markdown content={description} />
</Box>
<TwoKpiSection spacing={5}>
<KpiContentContainer>
{tilesData.map((tile, index) => (
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/static-props/get-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function replaceInaccurateLastValue(data: any) {

metricsWithInaccurateData.forEach((m) => {
if (isValuesWithLastValue(data[m])) {
for(const prop in inaccurateMetricProperties) {
for (const prop in inaccurateMetricProperties) {
data[m] = adjustDataToLastAccurateValue(data[m], inaccurateMetricProperties[prop]);
}
}
Expand Down

0 comments on commit cee2179

Please sign in to comment.