562 Commits

Author SHA1 Message Date
Samuel Mannehed (ThinLinc team)
fc5b83c08f Merge pull request #2043 from tobfah/enable-horizontal-control-bar
Enable attaching the control bar to top and bottom
2026-05-23 19:34:51 +02:00
dmotte
5c2025d5a6 Only focus username field if empty
https://github.com/novnc/noVNC/pull/2057
2026-05-22 20:07:04 +02:00
Tobias
052242df5d Remove redundant mobile buttons grouping
There's only one button in the group, and the wrapping div messed with
the flex box layout
2026-04-03 12:50:47 +02:00
Tobias
44343556e0 Enable attaching control bar to top and bottom 2026-04-03 12:50:47 +02:00
Tobias
52bc5a5f9f Use svg for control bar icon
Simplifies alignment. In preparation for horizontal control bar modes.
2026-04-03 12:49:48 +02:00
Tobias
f0d217719c Make scroll bar and key modifiers flex box
In preparation for horizontal control bar modes
2026-04-01 17:14:57 +02:00
Pierre Ossman
8e1ebdffba Remove some unused assignments
Mainly to keep eslint happy with its new recommended rules. But it also
makes the code more clear to not have unused stuff in it.

The des code got a bit more refactoring since eslint was upset about the
final "i++" as it was technically an unused assignment.
2026-02-13 12:33:11 +01:00
Samuel Mannehed (ThinLinc team)
d1a124401b Merge pull request #2029 from nykula/nykula-patch-1
Translate to Ukrainian
2026-01-11 00:44:19 +01:00
Greg Darke
f4f2f8d725 Expose WakeLockManager state transitions for tests
Dispatch an event on each state transition inside the WakeLockManager.
This gives the unit tests something to synchronise on, allowing us to
write fast, flake-free tests.
2025-12-06 19:00:42 +11:00
Greg Darke
077c54f312 Add error state for wakelock testing.
Add an error state to the WakeLockManager state machine. This adds a
transition that can be detected from tests (it otherwise serves no
purpose, and the system immediatly transitions back into the released
state).
2025-12-06 19:00:42 +11:00
Greg Darke
8341fdf846 Add wakelock support
Add a new configuration option `keep_device_awake` to allow noVNC to
stop the local display from going to sleep. This is especially useful
with view-only sessions.

This new option has been added to the configuration UI, making it easier
for users to configure. When this option is changed at runtime, we will
request/release the wake lock.

We only hold the view lock while connected to a server. We will also
attempt to reacquire the wakelock if we lost it due to a visibility
change (the tab becoming inactive, or during the transition into/from
fullscreen).

All existing unittests have been run, and the change has been manually
tested in Firefox 145. Additional tests will be added later.
2025-12-06 19:00:42 +11:00
Denys Nykula
b6136b5386 Translate to Ukrainian 2025-11-22 18:40:41 +00:00
Tobias
63c2c14a50 Display warning prompt before closing tab
The warning prompt is only displayed if there is an active connected
session, when viewOnly is disabled.
2025-10-30 16:23:11 +01:00
Alexander Zeijlon
91d12106df Merge branch 'master' of https://github.com/Deni42/noVNC 2025-10-30 15:49:43 +01:00
Tobias
d9b45d390b Disable clipboard button with async clipboard
With async clipboard available, the fallback clipboard textarea adds
mostly confusion. If async clipboard is out right denied, users most
likely don't want to see any clipboard activity.
2025-10-21 16:21:55 +02:00
Felso Daniel (McP/MFE4)
cf6fe1063c Add Hungarian translation 2025-10-08 13:04:27 +02:00
Alexander Zeijlon
d49d2b366a Use Croatian translations 2025-09-05 10:31:54 +02:00
Alexander Zeijlon
d7a37730e6 Merge branch 'master' of github.com:Leostruka/noVNC 2025-04-15 12:29:07 +02:00
leandro ostruka
6f9edb1d4a Fix typo in Portuguese translation for "Show extra keys" 2025-04-12 11:36:30 -03:00
Liao Peiyuan
980a49e5c5 Fix typo in error-handler.js 2025-04-10 12:29:19 -07:00
Samuel Mannehed
6010c9da04 Update comment reference missed in previous commit
Should have been part of f0a39cd357
2025-03-24 22:33:09 +01:00
Samuel Mannehed
f0a39cd357 Fix appearance of extra key buttons
Since the extra keys panel is quite narrow in width, a max-width style
resulted in the buttons almost disappearing. That rule was only intended
for elements inside the settings panel.

Broken by commit 14f9ea5880.

Another minor error that is also fixed by this commit is that the
clipboard textarea no longer incorrectly gets a left margin of 6px.

Fixes #1946.
2025-03-24 22:30:17 +01:00
Alexander Zeijlon
3947b4ca84 Update generated json files for new translations 2025-03-12 20:16:15 +01:00
Harold Horsman
09440da5c1 Update Dutch translation 2025-03-12 17:35:59 +01:00
Martine & Philippe
6002d57a88 Update French translation 2025-03-12 17:35:54 +01:00
Alexander Zeijlon
045a0ba158 Let browser handle parsing of URLs before relaying
We don't want to assign a path directly to url.pathname that contains a
search query, since this causes '?' at the beginning of the query to be
URL-encoded to '%3F'. Instead use URL() to parse the path for us.
2025-03-12 14:30:29 +01:00
Samuel Mannehed
24835bdda4 Make the background of expanded settings lighter
A very slight change to the background color, to make the contrast
better with the light-grey input elements.
2025-01-23 15:51:11 +01:00
Samuel Mannehed
14f9ea5880 Fix settings panel layout on small screens
Both labels and inputs protruded outside the panel on for example a
phone in portrait mode. This commit fixes that by allowing wrapping and
setting a max-width.

Since the --input-xpadding variable is now used in two different CSS
files, it was moved to constants.css.
2025-01-23 15:51:11 +01:00
Samuel Mannehed
6db9dbcf90 Tweak design of noVNC connect button
Make the color contrast with the background and the button more rounded.
The goal is to make the button stand out.
2025-01-23 15:51:11 +01:00
Samuel Mannehed
b5675bb5f6 Fix spacing between elements in dialogs
Dialogs have had text inputs and buttons cramped together without space
between, this fixes that.
2025-01-23 15:51:11 +01:00
Samuel Mannehed
4ab4286b25 Make text in panel headings bold
Makes the heading pop a bit more in the new airier layout.
2025-01-23 15:51:11 +01:00
Samuel Mannehed
88009230b6 Only color the left part of the range track
Makes it easier to envision the value is selected.
2025-01-23 15:51:11 +01:00
Samuel Mannehed
abe3c7bce9 Make range slider thumbs circular
Fits better with the new slightly rounded and spacious style. The track
was made slightly thicker to ensure proper centering of the new thumb.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
20611b677f Add styling for multi-select lists
This is a type of select box that doesn't appear like a button, but more
like a textarea that lists options. It is not currently used, but added
for completeness.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
3a5dd22603 Add styling for checked options in select boxes 2025-01-23 15:40:52 +01:00
Samuel Mannehed
24f99e548d Add styling for toggle switches
These are a type of checkbox that is suitable for ON/OFF-type switches.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
331ad34d90 Make interface airier by increasing line-height
Modern interfaces are less cramped, this makes noVNC feel more up to
date.

Note that this required some adjustments on noVNC_headings and
noVNC_connect_button since the text now takes up more height than the
images.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
2bc505741f Add styling for color pickers
Note that no color picker elements are currently in use, this is for
completeness.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
54e76817df Pointer cursor on buttons & grab on sliders
This makes buttons and slider stand out more.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
7b58cb96bc Add minimum width to buttons
This ensures they aren't too small, even if the text label is short.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
a2352b99c1 Standardize on ellipsis-type text-overflow 2025-01-23 15:40:52 +01:00
Samuel Mannehed
28e1717cf9 Remove number picker's increase/decrease buttons
We can't style them, and they don't fit the noVNC CSS style - we are
better off without them.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
deb76f97cd Add some sane default CSS for textareas 2025-01-23 15:40:52 +01:00
Samuel Mannehed
f0ec3d62b5 Avoid 2 borders when focus-visible on text inputs
By having the focus-visible outline overlapping the regular border
things look a bit more sane on text input elements.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
91cd920266 Keep CSS for different input elements together
By moving the CSS for select buttons to the bottom, we keep a more
logical ordering of the elements.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
1c45fd8547 Capitalize CSS section headings
Makes them easier to distinguish from regular comments.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
d8199859d3 Support 'disabled' attribute on labels
Note that the :disabled selector only works on inputs, buttons and the
like.

The current method of applying .noVNC_disabled to the settings
labels is still used. This support is added mostly for completeness.

Note that when a label wraps an input, only the label should have the
disabled attribute. Otherwise the effect applies twice to the input.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
e092f06d01 Move general :disabled rules to common top section
Start with general stuff, followed by specific things.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
ee08032fe7 Put specific :disabled rules with its element
It makes more sense to group rules per element type.
2025-01-23 15:40:52 +01:00
Samuel Mannehed
30d46a00fa Fix :disabled styling of file-selector-button
By applying the rule to the button within the input, we effectively
applied the opacity twice - making the button almost disappear. Applying
the opacity to the input element is enough.
2025-01-23 15:40:52 +01:00