Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve initial landing page - format of tiles #653

Open
eroyee opened this issue Dec 20, 2023 · 1 comment
Open

Improve initial landing page - format of tiles #653

eroyee opened this issue Dec 20, 2023 · 1 comment

Comments

@eroyee
Copy link

eroyee commented Dec 20, 2023

With earlier versions of kiwix-serve the initial landing page would display 15 tiles in a 3x5 table format (11.6" screen) thus:

kiwix_small

In later versions, using the same screen, it's possible to see only 4, and about 3/4 of another four in a 4x 1-3/4 format:

kiwix_large

While the later format gives an extra column it takes much more away in terms of rows because of the much larger display size for each tile. As can be seen from the provided example there is much unused white space in the later form that contributes nothing to the user. I suspect that for some people this is a retrograde step, meaning they could need to scroll somewhat before finding the zim/tile they want for no evident advantage - in fact it seems rather inefficient to me.

I mentioned this here #538 (comment), and although I acknowledge that I was rather late in doing so there was no response so I'm not certain it was ever considered.

Therefore I bring this up again and ask whether there is a possibility that this could be addressed either by:

(1) reverting to the original panel sizing (even better with 4 columns)
or
(2) include a command-line switch option for the two layouts?

Possible (3): I see that in later versions of kiwix-serve there is a '-c' option for customIndex. It may be that I'm looking at this incorrectly, but if the matter could be addressed via this option I wonder if some kind person could provide an example of how the original layout format might be reproduced?

@eroyee
Copy link
Author

eroyee commented Dec 21, 2023

I spent some time today messing around with the customIndex option.

From that I conclude that, if one knew what one was doing, it looks as if it should be possible to achieve something like the previous initial screen?

Interestingly I was able to get close to a simple index list of zims without any fancy icons etc, although this occurred as a result of my breaking something, rather than by design :) I will carry on with some experimenting and if anything useful comes from that will post about it, otherwise a little guidance on how to go about such changes would be useful I'm sure!

Note: I did follow the detail around customIndex in https://github.com/kiwix/libkiwix, however if I used the example code, with the example body text added, the result was a blank page.

@kelson42 kelson42 added this to the 3.8.0 milestone Mar 13, 2024
@kelson42 kelson42 modified the milestones: 3.8.0, 3.9.0 Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants