diff --git a/docs/configuration.md b/docs/configuration.md index 174de834..9f923ac3 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1963,6 +1963,7 @@ Properties for each site: | check-url | string | no | | | error-url | string | no | | | icon | string | no | | +| description | string | no | | | timeout | string | no | 3s | | allow-insecure | boolean | no | false | | same-tab | boolean | no | false | @@ -1989,6 +1990,10 @@ If the monitored service returns an error, the user will be redirected here. If See [Icons](#icons) for more information on how to specify icons. +`description` + +A short description displayed below the title. Unset by default. + `timeout` How long to wait for a response from the server before considering it unreachable. The value is a string and must be a number followed by one of s, m, h, d. Example: `5s` for 5 seconds, `1m` for 1 minute, etc. diff --git a/internal/glance/static/css/utils.css b/internal/glance/static/css/utils.css index 3bbb48cd..481bc607 100644 --- a/internal/glance/static/css/utils.css +++ b/internal/glance/static/css/utils.css @@ -253,6 +253,14 @@ details[open] .summary::after { text-align: left; } +.stretch-to-content { + min-width: 0; + display: flex; + flex-grow: 1; + flex-basis: 0%; + max-width: max-content; +} + .visited-indicator:not(:visited)::before, .visited-indicator:not(:visited)::after { color: var(--color-primary); } diff --git a/internal/glance/templates/monitor.html b/internal/glance/templates/monitor.html index cbdcbae1..30210419 100644 --- a/internal/glance/templates/monitor.html +++ b/internal/glance/templates/monitor.html @@ -27,6 +27,11 @@
{{ .Title }}