Context
No response
Bug description
When having long abbreviations, the tooltip will span the entire screen (I think it's related to this fix: #4810 (comment) )
However, this is not so easy to read when using the desktop browser or a larger screen.

I would expect that the tooltip width to be shorter (normal width but wrapped), I tried to change the --md-tooltip-width by including:
:root {
--md-tooltip-width: 20rem !important;
}
But this doesn't work.
I also noticed that the tooltip is rendered in the wrong position when within a table:

It is related to #4217
So three expected behaviors:
- Tooltips span the entire screen only when the screen size is smaller than the value of
--md-tooltip-width.
- When screen size larger than the value of
--md-tooltip-width, the value of --md-tooltip-width is used as the width of the tooltip div.
- If tooltip in tables, the position of the tooltip should be correct and should follow the two behaviors mentioned above.
Chrome: Version 121.0.6167.161
Edge: Version 121.0.2277.112
mkdocs-material version: 9.5.9
Related links
Reproduction
9.5.9-long-abbreviations-issue.zip
Steps to reproduce
- unzip
- run
mkdocs serve in terminal
- go to http://localhost:8000/
Browser
No response
Before submitting
Context
No response
Bug description
When having long abbreviations, the tooltip will span the entire screen (I think it's related to this fix: #4810 (comment) )

However, this is not so easy to read when using the desktop browser or a larger screen.
I would expect that the tooltip width to be shorter (normal width but wrapped), I tried to change the
--md-tooltip-widthby including:But this doesn't work.
I also noticed that the tooltip is rendered in the wrong position when within a table:

It is related to #4217
So three expected behaviors:
--md-tooltip-width.--md-tooltip-width, the value of--md-tooltip-widthis used as the width of the tooltip div.Chrome: Version 121.0.6167.161
Edge: Version 121.0.2277.112
mkdocs-material version: 9.5.9
Related links
Reproduction
9.5.9-long-abbreviations-issue.zip
Steps to reproduce
mkdocs servein terminalBrowser
No response
Before submitting