this post was submitted on 24 Mar 2022
0 points (NaN% liked)

Lemmy Support

4650 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hello. I have already written my question, but your answer has greatly confused me.

I found how I can edit CSS, I just connected via Filezilla to SFTP and made the changes I needed in "/var/lib/docker/overlay2/5a3c8300921407520fee8ff0ad1d8dbe1be7234e56fb77b6c39398aada06629a/merged/app/dist/assets/css/themes".

But I'm stuck in the main problem. On the main page of the site, previews of topics are displayed in sequence:

<picture>
<source srcset="https://led.ural.wtf/pictrs/image/98fab6dd-f762-47ce-873a-cc8c5446c491.jpeg?format=webp&thumbnail=256" type="image/webp"><source srcset="https://lem.ouraw.wtf/pictrs/image/98fab6dd-f762-47ce-873a-cc8c5446c491.jpeg"><source srcset="https://lem.ouraw.wtf/pictrs/image/98fab6dd-f762-47ce-873a-cc8c5446c491.jpeg?format=jpg&amp;thumbnail=256" type="image/jpeg">
<img class="img-fluid thumbnail rounded" src="https://lem.ouraw.wtf/pictrs/image/98fab6dd-f762-47ce-873a-cc8c5446c491.jpeg" alt="" loading="lazy"></picture>

Thus, because of "&thumbnail=256" I can't stretch the image by more than 256px (in CSS), otherwise it starts to spoil the quality.

My question is: how can I remove this part of the code via SFTP?

You sent me Lemmy UI, but due to ignorance of Linux and lack of readme/faq, I don't even understand what to do with it. And is it really necessary? After all, I have already successfully established my Lemmy Federation.

@nutomic@lemmy.ml

top 10 comments
sorted by: hot top controversial new old
[–] nutomic@lemmy.ml 1 points 2 years ago* (last edited 2 years ago) (2 children)

Sorry, the documentation is here. You cant really develop in that way over FTP, your changes will probably disappear once Docker or the server is restarted. If you want to develop on the server (not a good idea in my opinion), you need to install from scratch, without Docker.

[–] SOVERSHENEN@lemmy.ml 1 points 2 years ago* (last edited 2 years ago)

Thx. I'll try it. But Anyway, I can't find where I can erase

<source srcset="https://lem.ouraw.wtf/pictrs/image/98fab6dd-f762-47ce-873a-cc8c5446c491.jpeg?format=webp&amp;thumbnail=256" type="image/webp">

[–] SOVERSHENEN@lemmy.ml 1 points 2 years ago (1 children)
[–] nutomic@lemmy.ml 1 points 2 years ago (3 children)

What is it that you are trying to do?

[–] SOVERSHENEN@lemmy.ml 1 points 2 years ago (1 children)

I wanna reskin for lemmy :) With full size preview and excerpt, but now i have something like this:

[–] nutomic@lemmy.ml 1 points 2 years ago (1 children)

The proper way to do development is to clone the lemmy-ui repo, make changes and test them locally. Then commit to git, and build a Docker image which you upload to your server. You can use the commands below to push the Docker image without using Docker hub.

# on your computer
docker build . -f docker/prod/Dockerfile -t lemmy:test
docker save lemmy:test > lemmy-test.tar
scp lemmy-test.tar bakchodi.org:

# on server
docker load < lemmy-test.tar

The part about git is important because the AGPL license requires that all code changes are also published. So if you make changes only on the server, thats technically a license violation. Plus it will be very hard to maintain in the long term.

I am not sure about the thumbnail size, but looking through the lemmy-ui repo might give you some hint.

[–] nutomic@lemmy.ml 1 points 2 years ago

By the way you can also join the dev chat on Matrix.

https://matrix.to/#/#lemmydev:matrix.org

[–] SOVERSHENEN@lemmy.ml 1 points 2 years ago

Look lem.ouraw.wtf :)

[–] SOVERSHENEN@lemmy.ml 1 points 2 years ago (1 children)

And i have one more question.

when i try change configurations thru: https://lem.ouraw.wtf/admin, there are no changes happening.

I read that I can make changes via config/config.hjson, and i found 2 files with this name on the "docker folder" thru SFTP. Still No changes.

How i can to get to config.hjson via putty maybe?

[–] nutomic@lemmy.ml 1 points 2 years ago

Some changes require a restart. You need to run docker-compose up -d in the Lemmy folder on the server for that.