dosubot[bot] commented on issue #33896:
URL: https://github.com/apache/superset/issues/33896#issuecomment-3002765246

   <!-- Answer -->
   The cramped look in Treemap tooltips comes from inline styles (like 
`max-width: 300px`, `overflow: hidden`, and `text-overflow: ellipsis`) that 
Superset injects directly into the tooltip HTML, not from global CSS classes. 
This means dashboard-level CSS (even with `!important`) can only change the 
outer container (like background or border), but can't affect the inner 
padding, text wrapping, or cell sizing that make the tooltip feel cramped 
[details](https://github.com/apache/superset/blob/6876a1e6843cd1f28f4206ca2dd75342dfddcf26/superset-frontend/packages/superset-ui-core/src/utils/tooltip.ts).
   
   If you want to experiment, you can try increasing the `.echarts-tooltip` 
`max-width` or use browser dev tools to see if any tweaks help, but most of the 
layout is locked by those inline styles. To really improve the tooltip layout 
(like more padding or better text wrapping), it would require changes in the 
Superset codebase, specifically in the tooltip HTML generation for Treemap 
charts 
[reference](https://github.com/apache/superset/blob/6876a1e6843cd1f28f4206ca2dd75342dfddcf26/superset-frontend/plugins/plugin-chart-echarts/src/Treemap/transformProps.ts).
   
   Let me know if you want pointers on where in the code this lives or ideas 
for a custom build!
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/f0dbd74c-f7f8-4d9d-8d8c-cfeb34292a4c?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/f0dbd74c-f7f8-4d9d-8d8c-cfeb34292a4c?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/f0dbd74c-f7f8-4d9d-8d8c-cfeb34292a4c?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/f0dbd74c-f7f8-4d9d-8d8c-cfeb34292a4c?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/f0dbd74c-f7f8-4d9d-8d8c-cfeb34292a4c?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/f0dbd74c-f7f8-4d9d-8d8c-cfeb34292a4c?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/f0dbd74c-f7f8-4d9d-8d8c-cfeb34292a4c?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33896)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to