Skip to content

Commit

Permalink
Fix stepper pointer events
Browse files Browse the repository at this point in the history
  • Loading branch information
Negabinary committed May 21, 2024
1 parent da63054 commit 7b6855f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/haz3lweb/view/editor/CodeEditor.re
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ module View = {
~attr=
Attr.many([
Attr.classes(["cell-item"]),
Attr.classes(["code-editor"]),
Attr.on_mousedown(on_mousedown),
]),
mousedown_overlay @ [code_view],
Expand Down
8 changes: 7 additions & 1 deletion src/haz3lweb/www/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ body {
width: auto;
}

#main .code-container {
#main .code-editor {
cursor: text;
}

Expand All @@ -386,6 +386,7 @@ select {
font-family: "Source Code Pro", monospace;
font-weight: normal;
font-size: 13pt;
pointer-events: none;
}

#editor-mode,
Expand Down Expand Up @@ -2370,4 +2371,9 @@ svg.expandable path {

.tile-next-step .tile-path.Exp.indicated {
fill: #8aeda6;
}

svg.tile-next-step {
pointer-events: all;
cursor: pointer;
}

0 comments on commit 7b6855f

Please sign in to comment.