Skip to content

Commit

Permalink
[WEB-3201] improvement: minor enhancements for tree map text size and…
Browse files Browse the repository at this point in the history
… color (#6458)
  • Loading branch information
prateekshourya29 authored Jan 24, 2025
1 parent b016ed7 commit e2550e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/core/components/core/charts/tree-map/map-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ export const CustomTreeMapContent: React.FC<any> = ({
y={pY + pHeight - LAYOUT.TEXT.PADDING_LEFT}
textAnchor="start"
className={cn(
"text-xs font-extralight tracking-wider select-none",
textClassName || "text-custom-text-400"
"text-sm font-extralight tracking-wider select-none",
textClassName || "text-custom-text-300"
)}
fill="currentColor"
>
Expand All @@ -252,8 +252,8 @@ export const CustomTreeMapContent: React.FC<any> = ({
{bottom.labelTruncated
? truncateText(
label,
availableTextWidth - calculateContentWidth(value, LAYOUT.TEXT.FONT_SIZES.XS) - 4,
LAYOUT.TEXT.FONT_SIZES.XS
availableTextWidth - calculateContentWidth(value, LAYOUT.TEXT.FONT_SIZES.SM) - 4,
LAYOUT.TEXT.FONT_SIZES.SM
)
: label}
</tspan>
Expand Down

0 comments on commit e2550e0

Please sign in to comment.