LemmyTools

A small suite of tools to make Lemmy easier.

< Feedback on LemmyTools

Review: OK - script works, but has bugs

§
Posted: 2023-07-26

The darkly black theme causes the options window to always be displayed.

A simple fix is to set the options div display style to none when adding the options div to the dom.

const odiv = document.createElement("div");
odiv.setAttribute("id", "ltOptions");
odiv.classList.add("ltoptions", "border-secondary", "card");
odiv.style.display = 'none'; // <--- Default display none
odiv.innerHTML = 
howdy-tscAuthor
§
Posted: 2023-07-26

What version is your lemmy instance? I use darkly, on FF and my instance is 0.18.2. I do not have this issue. I actually develop on darkly theme :) So this is a surprise!

§
Posted: 2023-07-28

Weird, I'm on lemmy.world so 0.18.2 for UI.

The .card class from the darkly theme is what causes it to display for me (display is set to flex), but setting display to none on the element overrides it.

Post reply

Sign in to post a reply.