From 68845fc71548f28b96836f8c4944795221732e0d Mon Sep 17 00:00:00 2001 From: adro Date: Tue, 22 Feb 2022 10:34:45 +0100 Subject: [PATCH] Small improvements - Removed fake favicon in favor of 204 - Improved table actions (mobile) --- web/template/device.html | 37 +++++++++++++++++++------------------ web/template/page.html | 1 - web/web.go | 5 +++++ 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/web/template/device.html b/web/template/device.html index a6fcf7a..8d969ac 100644 --- a/web/template/device.html +++ b/web/template/device.html @@ -24,19 +24,21 @@ {{$d.Alias}} {{$d.MAC}} {{$d.IP}} - -
- - - - -
-
- - - - -
+ +
+
+ + + + +
+
+ + + + +
+
{{end}} @@ -63,10 +65,9 @@ } .actions { - text-align: center; - } - - .actions > form { - display: contents; + flex-flow: row wrap; + justify-content: center; + padding: 0; + gap: 0.5rem; } \ No newline at end of file diff --git a/web/template/page.html b/web/template/page.html index ed1f961..ac16454 100644 --- a/web/template/page.html +++ b/web/template/page.html @@ -5,7 +5,6 @@ - {{ .Title }} - miniwol diff --git a/web/web.go b/web/web.go index 39b13d5..7a4f430 100644 --- a/web/web.go +++ b/web/web.go @@ -28,6 +28,7 @@ func Run() error { e.GET("/", index) e.GET("/style.css", style) + e.GET("/favicon.ico", favicon) e.POST("/auth", auth) e.POST("/deauth", withAuth(deauth)) e.POST("/add", withAuth(add)) @@ -76,3 +77,7 @@ func style(c echo.Context) error { } return c.Blob(200, "text/css", styleData) } + +func favicon(c echo.Context) error { + return c.NoContent(204) +}