pixiebrix-extension icon indicating copy to clipboard operation
pixiebrix-extension copied to clipboard

Improve sidebar behavior on inflexible websites

Open fregante opened this issue 3 years ago • 0 comments

Sometimes, websites have fixed widths and don't adapt well when the sidebar is injected, which usually causes content to be unreachable. This was noted in https://github.com/pixiebrix/pixiebrix-extension/pull/4285#issuecomment-1247064084 as well.

I have a possible solution for this:

html {display: flex; overflow: hidden}
body {overflow-x: scroll}
.sidebar {position: sticky}

This makes the two views mostly independent from each other:

gif

Elements with position: fixed could also be disabled via body {transform: rotate(0.1deg)}

These changes however would be more invasive than what we currently have, so they might cause trouble on some sites, even if they fix many issues on others.

fregante avatar Oct 21 '22 11:10 fregante