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?
Hi Andreas,
is there still a check mark somewhere that needs to be activated? I have tried the same thing. However, it does not work.
I also tried it with a f7-icon and also cleared my browser cache. without success.
Helpful is also this docu about the floor plan markers. If it would work then?
tooltipDirection: left and tooltipOffsetX: 20 have no effect:
By the way, how can I format the number? Round to one decimal place and write °C behind it? My system is currently set up so that the temperature is processed as a number in this format.
EDIT: I tried what works for a custom widget, but not here. It always tells me Not a Number (NaN°C).
hey guys, can we make tooltip text larger? no matter what tooltip font size i configure its always the same (very small like in your picture).
I tried to define tooltip size to any number, and then in the code I tried to remove " " because this was the case with some other parameter which was not working because " " needed to be removed.
In any case, it doesn’t change the font size for mi, with or without “”