Skip to content

Commit

Permalink
Disable selection globally on sidebar
Browse files Browse the repository at this point in the history
We want to disable selections in the sidebar because when users drag
the handle, they could otherwise accidentally select stuff. This results
in a very broken state.

When selections are disabled, the sidebar also feels more like a GUI
element from a real application, and less like part of a webpage.
  • Loading branch information
samhed committed Nov 2, 2022
1 parent 0ef7582 commit 584ce06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ html {
background-color: rgb(110, 132, 163);
border-radius: 0 10px 10px 0;

user-select: none;
-webkit-user-select: none;
}
#noVNC_control_bar.noVNC_open {
box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
Expand Down

0 comments on commit 584ce06

Please sign in to comment.