gsimon2 / hide-player-ui

Foundry Virtual Tabletop module for hiding player control ui.
2 stars 3 forks source link

known issue if buttons not hiding properly as they are by Nth child and for some reason they change nth #56

Open Zarhog opened 1 week ago

Zarhog commented 1 week ago

https://github.com/gsimon2/hide-player-ui/assets/76391362/2788c023-df7f-4437-aafb-db4177dfe783

i ran into this issue, even with my code when i was building the hide by eliment. Perhaps you can consider a fix to be able to hide specific buttons on the left.

Zarhog commented 1 week ago

controls > ol.main-controls.app.control-tools.flexcol > li:nth-child(8);

controls > ol.main-controls.app.control-tools.flexcol > li.scene-control.active;

gsimon2 commented 1 week ago

Not sure what you are trying to hide but I would use a attribute selector. So if you wanted to hide something like targeting the selector would be [data-tool='target'];

image

Zarhog commented 6 days ago

thx

Zarhog commented 6 days ago

this resolved the issue thanks. perhaps adding a link to a document for other people to explain how CSS selection works :) im fairly new to this kinda stuff so im sure it would help others out lots

gsimon2 commented 5 days ago

Np!

I can add a link to some selector documentation in the menu. FWIW I am a frontend dev by trade and still google selector syntax most of the time I work with them, kinda just how it be 🤷‍♂️