Tatoeba / tatoeba2

Tatoeba is a platform whose purpose is to create a collaborative and open dataset of sentences and their translations.
https://tatoeba.org
GNU Affero General Public License v3.0
714 stars 132 forks source link

Unwanted scroll when opening sidenav on sentence page #3011

Closed trang closed 1 year ago

trang commented 2 years ago

Story

From a mobile phone, when you go to the sentence page, scroll down a bit and click on "Metadata", the main content of the page scrolls up to the top, "which throws you out of context when you are working somewhere further below", as reported by mramosch in https://github.com/Tatoeba/tatoeba2/issues/3001#issuecomment-1290813154.

Idea

We should prevent scrolling when the sidenav opens.

Otherwise, we should figure out a way to place the "Metadata" button more towards the top of the page, so that the scrolling is barely noticeable (like for the "Narrow search" button on the search page).