Skip to content

[Extension] Video download overlay is detached from player and overlaps page UI on dynamic layouts (e.g. YouTube) #43

Closed

Description

@ripton06

In the browser extension, the floating download overlay (.multron-video) often becomes detached from the actual video player and ends up overlapping unrelated page UI (such as menus, search bars, or notification dropdowns).

Symptoms

When watching videos (for example on YouTube), the download overlay does not stay properly anchored to the video element. As seen in the screenshot below, the button sits halfway across the page and covers YouTube's notification popup:

Overlay Issue Screenshot

Root Cause

  1. Fixed position on document root:
    In extension/content.js, the overlay is appended to document.documentElement with position: fixed; and positioned using absolute viewport coordinates (getBoundingClientRect()).
  2. Missing container scroll & resize tracking:
    Positioning updates rely on window.addEventListener('scroll') and resize. However, modern single-page applications like YouTube use custom internal scrollable containers (ytd-app / #page-manager), so window.scroll does not trigger when the page is scrolled or when adjacent panels expand/collapse.
  3. As a result, the button stays frozen at viewport coordinates, overlaps notification popups, or sits halfway between the video and sidebars on standard desktop widths.

Suggested Fixes

  1. Anchor inside the video player container:
    Instead of position: fixed on <html>, attach the overlay directly inside the player container (e.g. el.parentElement or standard player wrappers like #movie_player) using position: absolute; top: 12px; right: 12px; (or left: 12px;) so it naturally moves, scales, and hides together with the video.
  2. If kept in root, observe the target with a ResizeObserver and hook into container scroll events so the overlay stays locked to the video bounds.

Thanks again for the great extension and continuous improvements!

Pinned by iemirakman

Activity

  1. github-actions commented on Nov 21, 2026

    @github-actions
  2. added
    bugSomething isn't working
    and removed
    enhancementNew feature or request
    on Nov 21, 2026
  3. added theissue type on Nov 21, 2026
  4. added this to the v1.0.1 milestone on Nov 21, 2026
  5. self-assigned this
    on Nov 21, 2026
  6. iemirakman commented on Nov 21, 2026

    @iemirakman
    Member

    Thank you for the detailed root-cause analysis and reproduction steps @ripton06!

    This exact issue was resolved in v1.0.1 (commit e6bc859). The video download overlay is now anchored directly inside the video player container so it scrolls, resizes, and hides together with the video, keeping site menus, search bars, and notification popups unobstructed on dynamic layouts like YouTube.

    Please update to the latest release (v1.0.2) — and reload the updated browser extension package — and feel free to reopen if you notice any edge cases. Closing this issue as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: browser-extensionChrome / Firefox browser extensionarea: ui-uxSvelte frontend, themes, trays, localizationbugSomething isn't working

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions