LemmyTools

A small suite of tools to make Lemmy easier.

< Σχολιασμός για τον κώδικα LemmyTools

Αναφορά: Εντάξει - ο κώδικας λειτουργεί αλλά έχει σφάλματα

§
Δημοσιεύτηκε: 26/07/2023

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Δημιουργός
§
Δημοσιεύτηκε: 26/07/2023

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!

§
Δημοσιεύτηκε: 28/07/2023

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.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.