Skip to content

Commit b76fa43

Browse files
committed
PWV Drag Area Changes
1 parent c57861d commit b76fa43

7 files changed

Lines changed: 30 additions & 20 deletions

File tree

index.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,22 @@
2626

2727
<script>
2828
document.addEventListener("contextmenu", (event) => {
29-
event.preventDefault();
29+
// event.preventDefault();
3030
});
3131
</script>
3232

3333
<style>
3434
.pywebview-drag-region {
3535
position: fixed;
3636
display: block;
37-
top: 0.375rem;
38-
left: 5.25rem;
39-
width: 12rem;
40-
height: 1.75rem;
37+
top: 0;
38+
left: 0;
39+
width: 100%;
40+
height: 100%;
4141
background: transparent;
4242
opacity: 0%;
43-
z-index: 1;
43+
z-index: 0;
44+
pointer-events: all;
4445
}
4546
</style>
4647
</head>

src/components/engine/Node/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
justify-content: center;
1010
border-radius: calc(var(--icon-size) / 2);
1111
cursor: pointer;
12+
pointer-events: all;
1213
}
1314

1415
.node.active,

src/components/window/AppBar/index.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { WindowActions } from "@components/window/WindowActions";
66
import { ToolBar } from "@components/window/ToolBar";
77
import { Palette } from "@components/window/Palette";
88

9+
import Logo from "@assets/GraphScript.png";
910
import "./style.css";
1011

1112
export function AppBar({
@@ -17,25 +18,23 @@ export function AppBar({
1718
breadcrumb?: string;
1819
generateSuggestions?: (query: string) => Suggestion[];
1920
}) {
20-
const title: string = "GraphScript Engine";
21-
2221
return (<>
2322
<div className="root-app-bar">
2423
{isDesktop() && <WindowActions />}
2524
<div
2625
className={[
27-
"root-app-bar-title",
26+
"root-app-bar-logo",
2827
isDesktop() ? "is-desktop" : "",
2928
].join(" ")}
3029
>
31-
{title}
30+
<img src={Logo} alt="GraphScript Engine" />
3231
</div>
3332

3433
<ToolBar tools={tools} />
3534

3635
<Palette generateSuggestions={generateSuggestions} />
3736

38-
<div className="root-app-extra-title">
37+
<div className="root-app-breadcrumb">
3938
<span>
4039
{breadcrumb}
4140
</span>

src/components/window/AppBar/style.css

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,31 @@
88
height: 2.5rem;
99
}
1010

11-
.root-app-bar-title {
11+
.root-app-bar-logo {
1212
font-weight: bold;
13-
background-color: var(--color-white);
14-
color: var(--color-black);
15-
padding: 0.25rem 1rem;
16-
border-radius: 0.25rem;
17-
text-wrap: nowrap;
13+
height: 100%;
14+
padding: 0.5rem;
15+
}
16+
17+
.root-app-bar-logo img {
18+
height: 100%;
19+
width: auto;
20+
pointer-events: none;
1821
}
1922

20-
.root-app-bar-title:not(.is-desktop) {
23+
.root-app-bar-logo:not(.is-desktop) {
2124
margin-left: 0.25rem;
25+
filter: brightness(3);
2226
}
2327

24-
.root-app-extra-title {
28+
.root-app-breadcrumb {
2529
display: flex;
2630
align-items: center;
2731
justify-content: end;
2832
padding: 0 1rem;
2933
}
3034

31-
.root-app-extra-title span {
35+
.root-app-breadcrumb span {
3236
background: var(--color-black);
3337
color: var(--color-white);
3438
padding: 0.25rem 1rem;

src/components/window/Palette/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.app-navigator {
22
flex: 1;
33
position: relative;
4+
pointer-events: all;
45
}
56

67
.app-navigator input {

src/components/window/ToolBar/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
align-items: center;
1313
cursor: pointer;
1414
position: relative;
15+
pointer-events: all;
1516
}
1617

1718
.root-tool.disabled {

src/styles/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
color: var(--color-white);
1212
user-select: none;
1313
-webkit-user-select: none;
14+
pointer-events: inherit;
1415
transition:
1516
transform 0.3s ease-in-out,
1617
filter 0.3s ease-in-out,
@@ -35,6 +36,8 @@ html, body, #root {
3536
width: 100%;
3637
height: 100%;
3738
cursor: default;
39+
pointer-events: none;
40+
z-index: 10;
3841
font-family:
3942
"Lexend",
4043
"JetBrains Mono",

0 commit comments

Comments
 (0)