LemmyTools

A small suite of tools to make Lemmy easier.

< 腳本LemmyTools的回應

評論:普通 - 腳本能使用,但有一些問題

§
發表於: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-tsc作者
§
發表於: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!

§
發表於: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.

發表回覆

登入以回復