Dynmap-Forge/Fabric

Dynmap-Forge/Fabric

888k Downloads

There is no centering

1Pootis1 opened this issue ยท 6 comments

commented

Issue Description: Hello, I have a problem with the map, you can look at this link in more detail, this is an important problem, did you do something with CSS in the latest plugin updates? Link: TownyAdvanced/Towny#5711

[ ] I have looked at all other issues and this is not a duplicate
[ ] I have been able to replicate this

commented

The <center> tag referred to in the original issue is an obsolete HTML4 tag that browsers are stopping support for - likely broke with a browser update vs anything to do with Dynmap.
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center. use <div style="text-align:center"> instead

commented

it really works, but can you tell me how to return the lines that were?
image

<hr style="border-width:3px;border-color:grey;">

commented

I just used <hr> now and they appeared, but after a few seconds they disappeared again
image
image

commented

Found inconsistency in the sanitizer (which is used to protect web users from injection attacks from folks using the markup feature on labels and descriptions.... cannot allow folks to pass in things like javascript or the like) being applied for initial load of markers on a world, and updates (the initial load wasn't being cleansed properly, which was why the obsolete tags were getting through, and then being removed on updates/refreshes). I've added the <center> and <hr> tags to the whitelist, since they're old/obsolete, but safe.

commented

Tags added to whitelist on v3.3.2 and v3.4-SNAPSHOT (696+)

commented

thx ๐Ÿ˜Š๐Ÿ˜‰