sphinx-themes.org icon indicating copy to clipboard operation
sphinx-themes.org copied to clipboard

(re)load the page for each screen size

Open mgeier opened this issue 9 months ago • 1 comments

~For now, this is just an experiment, I don't know yet if it will work as intended.~

I don't know how the handling of progress should be adapted.

mgeier avatar May 05 '24 19:05 mgeier

OK, this works as expected.

Maybe I should explain:

My insipid theme shows a sidebar by default if the page is opened on a huge screen. However, it is not shown when opened on a small screen and the window is made larger afterwards.

Since the screenshot generation works like the latter, the large insipid screenshot doesn't look like it would actually look on a large screen.

mgeier avatar May 05 '24 19:05 mgeier

To make the situation clearer, here's a screenshot before this PR:

previous screenshot

... and here's how it looks like after this PR:

image

Note that the huge screen is supposed to show the left menu-bar by default, while the medium and small screens don't show it.

mgeier avatar May 13 '24 16:05 mgeier

Thanks!

mgeier avatar May 15 '24 20:05 mgeier