@gulshann what is the type of visualisation where you are currently facing this? Do you think that could be helpful in your use case Displaying a compact label for a visualization?
The other thing I can think off is if you create a custom plugin that exports css overrides to accommodate those needs.