[WEB-3201] improvement: minor enhancements for tree map text size and color (#6458)
This commit is contained in:
parent
b016ed78cf
commit
e2550e0b2d
1 changed files with 4 additions and 4 deletions
|
|
@ -241,8 +241,8 @@ export const CustomTreeMapContent: React.FC<any> = ({
|
||||||
y={pY + pHeight - LAYOUT.TEXT.PADDING_LEFT}
|
y={pY + pHeight - LAYOUT.TEXT.PADDING_LEFT}
|
||||||
textAnchor="start"
|
textAnchor="start"
|
||||||
className={cn(
|
className={cn(
|
||||||
"text-xs font-extralight tracking-wider select-none",
|
"text-sm font-extralight tracking-wider select-none",
|
||||||
textClassName || "text-custom-text-400"
|
textClassName || "text-custom-text-300"
|
||||||
)}
|
)}
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
>
|
>
|
||||||
|
|
@ -252,8 +252,8 @@ export const CustomTreeMapContent: React.FC<any> = ({
|
||||||
{bottom.labelTruncated
|
{bottom.labelTruncated
|
||||||
? truncateText(
|
? truncateText(
|
||||||
label,
|
label,
|
||||||
availableTextWidth - calculateContentWidth(value, LAYOUT.TEXT.FONT_SIZES.XS) - 4,
|
availableTextWidth - calculateContentWidth(value, LAYOUT.TEXT.FONT_SIZES.SM) - 4,
|
||||||
LAYOUT.TEXT.FONT_SIZES.XS
|
LAYOUT.TEXT.FONT_SIZES.SM
|
||||||
)
|
)
|
||||||
: label}
|
: label}
|
||||||
</tspan>
|
</tspan>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue