leafwiki icon indicating copy to clipboard operation
leafwiki copied to clipboard

Adjustable page width

Open Tak-MK opened this issue 4 weeks ago • 5 comments

Problem / use case

Depending on your screen, page contents have too wide margins. I think it's on "page-viewer" class but I might be wrong.

Proposed behavior

Maybe a setting to be able to change the percentage of the page margins width?

Is this ready to be implemented, or does it need discussion first?

I'm not a dev so no idea how difficult could it be to implement 😅

Thanks a lot! :D

Tak-MK avatar Nov 06 '26 09:11 Tak-MK

Hi @Tak-MK,

Adding it to the user section would be the way to go, I guess.

Actually, I like the narrower width of the area because I think it improves readability, at least in my opinion.

perber avatar Nov 13 '26 18:11 perber

Hi @Tak-MK,

Adding it to the user section would be the way to go, I guess.

Actually, I like the narrower width of the area because I think it improves readability, at least in my opinion.

Hi :D

I do agree that helps with readability, but when I checked with mostly reference pages with tables and photos, having a narrow page makes everything either small or forcing you to scroll horizontally :(

By user section you mean per-user setting? Or it would be done for guests/everyone in a global setting?

Thanks a lot!

Tak-MK avatar Nov 14 '26 10:11 Tak-MK

Hi @Tak-MK,

sorry for the late response. It is a general setting. You can configure it once and it is for every users.

perber avatar Nov 23 '26 14:11 perber

@perber Thanks a lot! Sadly in my case it's still too narrow 🫠 Just to not bother you more or to add a 100% wide option for my specific case, could I change the css in my installation manually? or I would need to recompile the binary itself? Sorry again and thanks! 🙏🏻

Tak-MK avatar Nov 24 '26 09:11 Tak-MK

You can change it manually by adding a custom.css file https://github.com/perber/leafwiki/discussions/1440

perber avatar Nov 24 '26 11:11 perber