BeneosBattlemaps / Beneos-Point-Of-Interest-Teleporter

We took over the further development of the PoI-Teleporter module for FoundryVTT in 2024.
MIT License
2 stars 1 forks source link

The size of the menu and the text is too small on scenes with large grid size #2

Closed icristianhrimiuc closed 4 months ago

icristianhrimiuc commented 4 months ago

The size of the menu and the text is too small on scenes with large grid size, and there is no way to control or modify the default size as it is statically defined inside the poi-teleport.css file.

To fix this I removed the "font-size" entry from the #poi-tp-ctx-menu definition and added the following line in poi-teleport.js ...

setPosition() {
  const position = {
  left: this.object.x,
  top: this.object.y,
  "font-size": this.poitp.note.size / 2 + "px" // this line was added to fix the issue
  };
  this.element.css(position);
}

...

I also added "z-index: 10;" to #poi-tp-ctx-menu in poi-teleport.css to bring the HUD menu in front of the "Toogle Visibility State" button.

LeRatierBretonnien commented 4 months ago

Thanks for your report. Your patch is going to be tested and - if OK - available in the next release.