Skip to content

Iframe sidebar sometimes overlaps other content #35

@Su-Well

Description

@Su-Well

I've seen this on several sites, the most recent in memory being youtube.com, where Sidebar+ is on top of youtube's menu on the left:
image

It's my opinion that this isn't really Sidebar+'s fault, but rather the fault of bad CSS on the offending websites. Case in point, even youtube's own devs refers to the overlapping element's CSS as:
image

Nevertheless, it is our problem. I've played around with Sidebar+'s and youtube's CSS a little, but have as of yet been unable to find a solution I'm confident can be generalized to all sites. I'm not very skilled at CSS, but here are some things that come to mind as far as solutions go:

  • Due to the diversity of of sites this has to work on, I seriously doubt this can be solved solely by editing the CSS of the parent sidebar element
  • Maybe there is a way to trick the main site into thinking the screen starts?
  • Maybe the sidebar can be placed in a separate parent element, as a sibling to the main element?
  • Another option is to inspect the properties of all direct children of , and modify the CSS of those that would overlap Sidebar+

I'd be happy to put in some work on this, but I figure that I should at least get your thoughts on this first @zluca.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions