Dear All. I have a simple floorplan with temp and humidity for many rooms.
With tooltips set to tooltipPermanent: true so they are visible all the time
I notice that the tooltip is actually half obscuring the icon.
If I inspect the page CSS this can be fixed by modyfing
.leaflet-tooltip-right {
margin-left: 6px;
}
to like 20px and that would do the job for me
Now the question would be how do I pass this styling in YAML to fix that?
Some parameters can be passed in the , but those are related to text itself
tooltipStyles:
margin-left: 100px
But I somehown can’t modify that one related to leaflet-tooltip-right
Is that possible in YAML?
If not maybe I can hard hack the CSS for all the floorplans but here I have a problem finding the CSS on the OH3 server that is serving it
http://my_ip_address:8080/css/3.app.css
You can try searching the forums for the stylesheet property (which was added back in march or april if I recall). That allows page level css styling for widgets and other UI pages, I don’t know if it applies to the floorplans or not.
unfortunately in the syntax I providede one post up it does not. My coprehention of the CSS is very basic. I might have messed up something. This is the exact inspect
Hmm…as I said, I don’t know if the stylesheets are supposed to work with the floorplan pages. It looks like leaflet-tooltip-xxxx should be appropriately downstream so I’m not sure what’s going on.
You could also look into using the tooltipstyle parameter. The downside here is you’ll have to define it for every mark you place.
tooltipstyle works nice but it does the styling within the leaflet-tooltip, so margin-left: 100px does move text within the tooltip.
How about just hard hacking the whole leaflet CSS. with larger tooltip margin?
http://my_ip_address:8080/css/3.app.css
Where is this CSS located on the server so I can modify once for all the tooltips?