From b4ac96ccaf13529f7dfe5414f5fee70cb33c68b8 Mon Sep 17 00:00:00 2001
From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com>
Date: Mon, 13 Jan 2025 10:47:55 +0000
Subject: [PATCH] Remove whitespace in template & increase popover max width
---
.../glance/templates/docker-containers.html | 44 +++++++++----------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/internal/glance/templates/docker-containers.html b/internal/glance/templates/docker-containers.html
index d9ff2d8..66c79fd 100644
--- a/internal/glance/templates/docker-containers.html
+++ b/internal/glance/templates/docker-containers.html
@@ -1,64 +1,64 @@
{{ template "widget-base.html" . }}
-{{ define "widget-content" }}
+{{- define "widget-content" }}
- {{ range .Containers }}
+ {{- range .Containers }}
-
+
{{ .Image }}
{{ .StateText }}
- {{ if .Children }}
+ {{- if .Children }}
- {{ end }}
+ {{- end }}
- {{ if .URL }}
+ {{- if .URL }}
{{ .Title }}
- {{ else }}
+ {{- else }}
{{ .Title }}
- {{ end }}
- {{ if .Description }}
+ {{- end }}
+ {{- if .Description }}
{{ .Description }}
- {{ end }}
+ {{- end }}
{{ template "state-icon" .StateIcon }}
- {{ else }}
+ {{- else }}
No containers available to show.
- {{ end }}
+ {{- end }}
-{{ end }}
+{{- end }}
-{{ define "state-icon" }}
-{{ if eq . "ok" }}
+{{- define "state-icon" }}
+{{- if eq . "ok" }}
-{{ else if eq . "warn" }}
+{{- else if eq . "warn" }}
-{{ else if eq . "paused" }}
+{{- else if eq . "paused" }}
-{{ else }}
+{{- else }}
-{{ end }}
-{{ end }}
+{{- end }}
+{{- end }}