Ver código fonte

Minor fix of desktop share context menu header

Toby Chui 3 anos atrás
pai
commit
bd58117e3e
2 arquivos alterados com 6 adições e 1 exclusões
  1. 1 1
      mod/share/share.go
  2. 5 0
      web/script/contextmenu.css

+ 1 - 1
mod/share/share.go

@@ -210,7 +210,7 @@ func (s *Manager) HandleOPGServing(w http.ResponseWriter, r *http.Request, share
 		draw.Draw(resultopg, resultopg.Bounds(), resizedThumb, image.Point{-(resultopg.Bounds().Dx() - resizedThumb.Bounds().Dx() - 90), -60}, draw.Over)
 	}
 
-	w.Header().Set("Content-Type", "image/jpeg") // <-- set the content-type header
+	w.Header().Set("Content-Type", "image/jpeg")
 	jpeg.Encode(w, resultopg, nil)
 
 }

+ 5 - 0
web/script/contextmenu.css

@@ -136,3 +136,8 @@
     text-align: right;
     color: #bfbfbf;
 }
+
+.aroz.contextmenu .header{
+	padding: 0.4em;
+	background-color: rgba(30,30,30,0.05);
+}