Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit be78e45

Browse files
committed
only allow mouse dragging in the top-most header
Fixes #772
1 parent d1b64cb commit be78e45

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

app/content/css/ui.css

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@ html, body, .page, .main, .repl, #sidecar {
99
body {
1010
margin: 0;
1111
overflow: hidden;
12-
-webkit-app-region: drag;
1312

1413
/* variables */
1514
--font-monospace: "Fira Mono",Menlo,"DejaVu Sans Mono","Bitstream Vera Sans Mono",Courier,monospace;
1615
}
17-
body p, body input, .entity-name, .repl-input, .repl-output span {
18-
-webkit-app-region: no-drag;
19-
}
2016
.page {
2117
display: flex;
2218
flex-direction: column;
@@ -37,6 +33,10 @@ body a:hover:not(.plain-anchor) {
3733
}
3834

3935
/* HEADER */
36+
body .page > .header {
37+
/* only allow mouse dragging on top-most header */
38+
-webkit-app-region: drag;
39+
}
4040
.header {
4141
flex-basis: 40px;
4242
display: flex;
@@ -799,14 +799,12 @@ sidecar .sidecar-content {
799799
}
800800
sidecar .sidecar-content > div, sidecar .sidecar-content .activation-content > pre {
801801
padding: 1.5em 1em;
802-
-webkit-app-region: no-drag;
803802
}
804803
sidecar .sidecar-content .hook-for-third-party-content.no-content {
805804
display: none;
806805
}
807806
sidecar .sidecar-content .activation-content {
808807
padding: 0;
809-
-webkit-app-region: drag;
810808
}
811809
sidecar .sidecar-content .activation-content, sidecar .sidecar-content .hook-for-third-party-content {
812810
flex: 1;
@@ -1287,11 +1285,6 @@ body.subwindow .repl-inner {
12871285
margin-top: 2em;
12881286
}
12891287

1290-
/* subwindow */
1291-
body.subwindow .repl {
1292-
-webkit-app-region: drag;
1293-
}
1294-
12951288
/* we use titleBarStyle:hidden/hiddenInset on mac; this makes room for the window close/min/max buttons */
12961289
body.os-darwin:not(.fullscreen) .header {
12971290
padding-left: 5em;

0 commit comments

Comments
 (0)