Skip to content

Enable attaching the control bar to top and bottom#2043

Open
tobfah wants to merge 8 commits intonovnc:masterfrom
tobfah:enable-horizontal-control-bar
Open

Enable attaching the control bar to top and bottom#2043
tobfah wants to merge 8 commits intonovnc:masterfrom
tobfah:enable-horizontal-control-bar

Conversation

@tobfah
Copy link
Copy Markdown

@tobfah tobfah commented Feb 18, 2026

This PR enables attaching the control bar to the top and bottom positions, in addition to the traditional left and right positions.

Tested on

  • Fedora 42
    • Firefox 147
    • Chromium 144
  • macOS 26.3
    • Safari 26.3
    • Chrome 144
  • Win 11
    • Edge 145
  • Android 13
    • Chrome 144
  • iPad 26.3
    • Safari 26.3

Tobias added 4 commits February 18, 2026 13:56
In preparation for top and bottom modes
Facilitates a horizontal control bar
Facilitates a horizontal control bar
Simplifies alignment for vertical and horizontal control bar modes
@CendioHanli
Copy link
Copy Markdown

Tested the implementation on Epiphany v40.2 and Chromium v144 on Fedora 43 and found no issues. Regarding the decision to not use a relative offset for the noVNC_control_bar in the top and bottom positions look good. I found no instance where this caused any weird edge cases.
LGTM!

Copy link
Copy Markdown
Member

@samhed samhed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funkar bra, har testat på Chrome (Linux) och Firefox (Android), mycket trevlig funktion!

Ifall slutresultatet är tänkt att ha uppdelade commits bör du nog nämna i alla commits vilken relation de har till huvudproblemet.

app/ui.js Outdated

const anchor = document.getElementById('noVNC_control_bar_anchor');
if (anchor.classList.contains("noVNC_right")) {
const anchorAndDescendants = [anchor, ...anchor.querySelectorAll('*')];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Varför behöver vi jobba med descendants här? Borde inte css-selectors lösa det?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nämn gärna att denna commit är förberedande för att tillåta att flytta control bar

@samhed samhed modified the milestones: v1.7.0, v1.8.0 Mar 24, 2026
@tobfah tobfah force-pushed the enable-horizontal-control-bar branch from 3b0ba39 to cea37c8 Compare March 27, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dock 'noVNC' control box on either top/bottom of the window rather than left/right only

3 participants