Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Compatibility issue with Minimal UI #125

Open
yjeroen opened this issue Jan 14, 2022 · 3 comments
Open

Compatibility issue with Minimal UI #125

yjeroen opened this issue Jan 14, 2022 · 3 comments
Assignees
Labels
bug Something isn't working external Something external to the module (eg. core or another module)

Comments

@yjeroen
Copy link

yjeroen commented Jan 14, 2022

Describe the bug
Minimal UI has the option to make the icons of the control sidebar smaller. Because combat-carousal uses nonconform HTML, this isn't working correctly.

To Reproduce
Enable both Minimal UI and combat-carousel.

image

<li class="scene-control " data-control="effects" data-canvas-layer="specials" title="Effect Controls">
            <i class="fas fa-magic"></i>
        </li>

<li class="scene-control" data-control="combat-carousel" title="Combat Carousel - click to toggle visibility, right-click to reset position">
    <img src="modules/combat-carousel/icons/empty-carousel-solid.svg" class="carousel-icon">
    <div class="wrapper">
        <i class="fas fa-caret-down collapse-indicator"></i>
    </div>
</li>

Normal HTML generated by Foundry API can be seen first. (example from FXMaster module)
Below that you can see the nonconform HTML generated by combat-carousal.

Expected behavior
Same API usage of adding control buttons as normal modules, so there is compatibility with Minimal UI and other modules that interact with the control sidebar.

Environment Info (please complete the following information):

  • Foundry Version: v9
  • CC Version: 0.2.5
@yjeroen
Copy link
Author

yjeroen commented Jan 14, 2022

Example of FXMaster adds its button via a hook:
https://gitlab.com/mesfoliesludiques/foundryvtt-fxmaster/-/blob/master/module/controls.js

@eclarke12 eclarke12 added the external Something external to the module (eg. core or another module) label Jan 15, 2022
@eclarke12
Copy link
Member

Example of FXMaster adds its button via a hook: https://gitlab.com/mesfoliesludiques/foundryvtt-fxmaster/-/blob/master/module/controls.js

I can't add the button via the hook as the scene controls only accept font awesome icons. I will see what I can do about this in a future update.

@yjeroen
Copy link
Author

yjeroen commented Jan 15, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working external Something external to the module (eg. core or another module)
Projects
None yet
Development

No branches or pull requests

2 participants