Skip to content

Commit

Permalink
Apply grab and grabbing cursor to graph UI element (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
talohana authored May 7, 2024
1 parent e4905b0 commit eadc583
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/driver/html/graph.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#graph {
cursor: grab;
}

#graph:active {
cursor: grabbing;
}
1 change: 1 addition & 0 deletions internal/driver/html/graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<title>{{.Title}}</title>
{{template "css" .}}
{{template "graph_css" .}}
</head>
<body>
{{template "header" .}}
Expand Down
1 change: 1 addition & 0 deletions internal/driver/webhtml.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func addTemplates(templates *template.Template) {
def("css", loadCSS("html/common.css"))
def("header", loadFile("html/header.html"))
def("graph", loadFile("html/graph.html"))
def("graph_css", loadCSS("html/graph.css"))
def("script", loadJS("html/common.js"))
def("top", loadFile("html/top.html"))
def("sourcelisting", loadFile("html/source.html"))
Expand Down

0 comments on commit eadc583

Please sign in to comment.