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.

发布留言

登录以发布留言。