rystaf / mlmym

a familiar desktop experience for lemmy
GNU Affero General Public License v3.0
251 stars 16 forks source link

nit, fix - Class "expando" of each post is not a constantly defined class name #42

Closed abe546 closed 1 year ago

abe546 commented 1 year ago

When loading the website : https://old.lemmy.world/ each "post" class member, that contains an "expando" member will define the expando class name as "expando " (notice the empty space at end of string).

e.g. :

image

But after the image is clicked on by the user, and closed again, the class name becomes "expando" (no more white space)

e.g :

image

I noticed this when creating a chrome extension that was interacting with the DOM. For now I'm using an OR condition for expando with and without space, but that doesn't seem right.