*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Rework sidebar (for mobile devices)

Description

We provide some custom mechanism that changes the header when the page is accessed by small screens. However, our own approach has some issues:

  • This mechanism requires extra markup in the Jinja templates
  • The code is just sitting around in page.html and should at least be refactored into a separate file
  • The links displayed in this sidebar are not up to date (e.g. some relevant links like the dashboard are missing)
  • When this sidebar menu is opened, we get extra scrollbars that nobody wants
  • Scrolling around on the page for a bit breaks the styling
  • The upstream InvenioRDM project provides a similar feature with nicer behavior

Pointers

Some relevant code in our project:

Some relevant code upstream:


Feature comparison

Our instance

In this screenshot, the scrollbars are clearly visible. So is the fact that the darkening of the background doesn't apply to the entire page, which can be seen after scrolling a bit.

image


Vanilla InvenioRDM (the sandbox in v9; 2022-07-20)

With collapsed sidebar (menu button is visible top right):

image

With opened sidebar:

image

Note that their sidebar stays in place nicely when scrolling through the page.