From 5fa23a72bbcc6dd55199468cba6f6f76d9edfdda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Wed, 27 Dec 2023 21:00:27 +0100 Subject: [PATCH] make details less jumpy --- table.tmpl | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/table.tmpl b/table.tmpl index cdadc66..52557e5 100644 --- a/table.tmpl +++ b/table.tmpl @@ -31,14 +31,22 @@ tr:hover { .issue { background: #edc; } +.minh { + min-height: 5em; +} details { - max-width: 30vw; + max-width: 50vw; border-radius: 5px; padding: 8px; overflow-x: auto; white-space: nowrap; text-overflow: ellipsis; } +details[open] { + position: absolute; + background: white; + border: 2px grey solid; +} details.version { max-width: 30vw; padding: 5px; @@ -47,6 +55,14 @@ details.version { white-space: normal; text-align: justify; } +details[open].feature { + background: aliceblue; + border: 2px midnightblue solid; +} +details[open].issue { + background: lightyellow; + border: 2px brown solid; +}

GNU Taler Dashboard

@@ -66,7 +82,7 @@ details.version { {{- range $vname := $top.TargetVersions }} {{- with $version := $versions.Get . }} -
+
{{ $vname }} ({{ $version.Timestamp.Format "02 Jan 06"}})
{{ $version.Description }}
@@ -79,7 +95,7 @@ details.version { {{ . }} {{- range $tar := $top.TargetVersions }} {{- with $version := $versions.Get . }} - {{ with $features.ByCategoryAndTarget $cat $tar }} +
{{ with $features.ByCategoryAndTarget $cat $tar }}
{{ $l := len .}}{{ if lt 1 $l }}{{ $l }} features{{ else }}1 feature{{ end }} {{- range . }} @@ -94,7 +110,7 @@ details.version { {{.Id}} {{.Summary}}
{{end}}
{{ end -}} - {{ end }} +
{{ end }} {{ end }} {{- end}}