Skip to content

Add fullscreen button with auto-hide navbar for proxied content#16

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/add-fullscreen-button-navbar
Draft

Add fullscreen button with auto-hide navbar for proxied content#16
Copilot wants to merge 5 commits intomainfrom
copilot/add-fullscreen-button-navbar

Conversation

Copy link
Contributor

Copilot AI commented Jan 14, 2026

Adds a fullscreen button next to the settings button that fullscreens the proxied iframe and implements browser-like navbar auto-hide behavior on mouse proximity.

Changes

  • Fullscreen button: Icon toggles between expand/collapse states, positioned before settings button in navbar
  • Auto-hide navbar: Both tab and search bars slide up on fullscreen entry, reveal on mouse move to top 50px, auto-hide after 3s idle
  • ESC key handler: Exits fullscreen with proper state management
  • CSS transitions: 0.3s slide animations for navbar show/hide, iframe expands to 100vh in fullscreen mode

Implementation

function handleMouseMoveInFullscreen(e) {
  if (e.clientY <= 50) {
    showNavbar();
    navHideTimeout = setTimeout(() => hideNavbar(), 3000);
  } else if (e.clientY > 150) {
    hideNavbar();
  }
}

State managed via isFullscreenMode flag, updated consistently across toggle button and ESC key paths.

Screenshots

Normal view with fullscreen button:
Normal View

Fullscreen mode (navbar shown on mouse proximity):
Fullscreen Active

Dark mode:
Dark Mode

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • example.com
    • Triggering command: /usr/local/bin/node node src/server.js (dns block)
  • google.com
    • Triggering command: /usr/local/bin/node node src/server.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

add a simple fullscrenn button righ next to the settings button on the top navbar which fullscreens the proxied iframe and makes the entire upper navbar (tab and searchbar rows) drop down when you move your mouse to the top like a real browser.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@codesandbox
Copy link

codesandbox bot commented Jan 14, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copilot AI and others added 4 commits January 14, 2026 21:22
Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Co-authored-by: sriail <225764385+sriail@users.noreply.github.com>
Copilot AI changed the title [WIP] Add fullscreen button to top navbar Add fullscreen button with auto-hide navbar for proxied content Jan 14, 2026
Copilot AI requested a review from sriail January 14, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants