소스 검색

webhtml: fix search input svg icon (#484)

Vladimir Varankin 5 년 전
부모
커밋
6ce02741cb
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6
    4
      internal/driver/webhtml.go

+ 6
- 4
internal/driver/webhtml.go 파일 보기

@@ -14,10 +14,12 @@
14 14
 
15 15
 package driver
16 16
 
17
-import "html/template"
17
+import (
18
+	"html/template"
18 19
 
19
-import "github.com/google/pprof/third_party/d3"
20
-import "github.com/google/pprof/third_party/d3flamegraph"
20
+	"github.com/google/pprof/third_party/d3"
21
+	"github.com/google/pprof/third_party/d3flamegraph"
22
+)
21 23
 
22 24
 // addTemplates adds a set of template definitions to templates.
23 25
 func addTemplates(templates *template.Template) {
@@ -91,7 +93,7 @@ a {
91 93
   text-align: left;
92 94
 }
93 95
 .header input {
94
-  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='pointer-events:none;display:block;width:100%25;height:100%25;fill:#757575'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61.0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 4px center/20px 20px;
96
+  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='pointer-events:none;display:block;width:100%25;height:100%25;fill:%23757575'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61.0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 4px center/20px 20px;
95 97
   border: 1px solid #d1d2d3;
96 98
   border-radius: 2px 0 0 2px;
97 99
   padding: 0.25em;