From e2550e0b2d6c0086e6a30e28f34e11cd94ca4ae4 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Fri, 24 Jan 2025 19:20:44 +0530 Subject: [PATCH] [WEB-3201] improvement: minor enhancements for tree map text size and color (#6458) --- web/core/components/core/charts/tree-map/map-content.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/core/components/core/charts/tree-map/map-content.tsx b/web/core/components/core/charts/tree-map/map-content.tsx index e7e1bfae165..f3b062cb08c 100644 --- a/web/core/components/core/charts/tree-map/map-content.tsx +++ b/web/core/components/core/charts/tree-map/map-content.tsx @@ -241,8 +241,8 @@ export const CustomTreeMapContent: React.FC = ({ 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" > @@ -252,8 +252,8 @@ export const CustomTreeMapContent: React.FC = ({ {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}