SoraHjort / webcomic_reader

Webcomic Reader userscript at
https://openuserjs.org/scripts/anka-213/Webcomic_Reader
MIT License
10 stars 1 forks source link

Settings Menu - Fix Align and Sizing #34

Closed SoraHjort closed 1 year ago

SoraHjort commented 1 year ago

The alignment and sizing of the settings menu has had problems on mobile when in portrait mode, as well as some sites somehow overriding the positioning of it.

This commit should address these issues. Changes such as removing the auto calculation of margin and top via javascript in favor of a pure CSS solution. As well as having the settings menu be towards the top of the page, and having the viewport auto scroll up to it when it gets opened.

This should also hopefully fix an related issue where the settings menu will repeatedly make the page longer each time you go between settings tabs.