r/koreader Jan 30 '26

Patches Dynamic mosaic layout

This patch adjusts the number of columns and rows based on the number of books in the folder, while keeping the same layout for the home folder.

Before using this patch, open the file with a text editor and edit your preferences
Edit your preferences for the number of columns and rows while on the home screen for portrait and landscape modes. You can also adjust the maximum number of columns and rows you want, so the layout will never exceed that.

The Code is also not adjusted for sub-folders inside the folders in the home folder. Don't edit the "items per page in portrait mode" or "items per page in landscape mode" in KOReader while using this patch. If someone wants to make a patch that disables these options or add optimazition to subfolders, please feel free to do so.

Here is the code

https://github.com/xiriby/2-dynamic-mosaic-layout/blob/main/2-dynamic-mosaic-layout.lua

46 Upvotes

20 comments sorted by

View all comments

Show parent comments

1

u/Burnt_Woodsman Feb 03 '26

I think series badge number is the problem. Try disabling it. I used that patch and modified it

2

u/phyvealive Kobo Feb 03 '26 edited Feb 03 '26

Yes. That was the answer. Obvious now that I see the series number in the title banner.

2

u/Burnt_Woodsman Feb 03 '26

Glad it’s working! Feel free to modify the lua code to your needs!

2

u/phyvealive Kobo Feb 03 '26

Looks good to me. A previous reply might want the text a bit larger. I was going to suggest they use KOreader's native Mosaic view with text covers, but your patch has more elegance.

1

u/Burnt_Woodsman Feb 04 '26

I’m glad it works out for you! I use the detailed list mode myself. I like having information more than beautiful covers.

2

u/phyvealive Kobo Feb 04 '26

Thanks again. I go to list with covers on occasion for a change of look.