Is is possible to reduce the font size of the "Sensor Message only on Status Related Background"? We are using a big monitor and a map solution 1920x1080 and like to show a lot of devices in our network. So we like to reduce the font size of the described status icon.
4 Replies
Dear Sabine,
please paste following code into your <PRTG install path>\webroot\css\styles_custom.css (create the file if it does not exist)
.map_icon_customfont .moreicon { display: none; } .map_icon_customfont, .map_icon_customfont div, .map_icon_customfont span, td.map_icon_customfont { font-size: 12px; font-weight: bold; } .map_icon_customfont .status { font-size: 8px; font-weight: normal; }
and the following code in a new file called for example <PRTG install path>\webroot\mapobjects\sensormessagesmallfont.htm
<!--Status Icons: Sensor Message only on Status Related Background Small Font--> <div class="map_object map_icon2 map_icon_customfont <#sensor type="colorclassofstate" prefix="map_iconcolor_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <#checkobjecttype objecttype="sensor" nicemessage="true" id="<@objectid>"> <#objectproperty name="Name" id="<@objectid>"> <#objectstatus name="message" show="textraw" id="<@objectid>"> <#mapobject type="htmlafter" subid="<@subid>"> </div>
Then reload your mapeditor and you should have a new mapobject in the "Staus Icons" category named "Sensor Message only on Status Related Background Small Font".
In the styles_custom.css adjust the two "font-size" parameters as you like.
Regards, Daniel
Hello Daniel, great! This will help me a lot! Best regards, Sabine
Hello
Is this still possible? If so, how? I was having trouble with changing the font size, absolute or relative units both had no effect on the font so I ended up scaling the whole thing with transform:scale(x,x) which worked pretty well. But after the update to 18.1.36.3733 its broken.
Regards
Hi Ben,
Sorry, we're trying to keep the modifications done to maps as little as possible with the new interface. Please check out Are There Any Alternatives To Maps? instead :)
Kind regards,
Stephan Linke, Tech Support Team
Please log in or register to enter your reply.
Add comment