diff --git a/hc/front/views.py b/hc/front/views.py index 0e4be99f..e2ad126b 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -245,7 +245,7 @@ def status(request, code): { "code": str(check.code), "status": check.get_status(), - "last_ping": LAST_PING_TMPL.render(ctx), + "last_ping": LAST_PING_TMPL.render(ctx).strip(), "started": check.last_start is not None, } ) diff --git a/static/css/my_checks_desktop.css b/static/css/my_checks_desktop.css index a2ec4477..717dadad 100644 --- a/static/css/my_checks_desktop.css +++ b/static/css/my_checks_desktop.css @@ -55,6 +55,10 @@ padding-left: 15px; } +#checks-table .integrations { + white-space: nowrap; +} + #checks-table .integrations span { padding: 10px 2px; display: inline-block; @@ -103,28 +107,20 @@ button.copy-link:hover { text-decoration: underline; } - - - tr:hover .copy-link { opacity: 1 } -#checks-table .url-cell, -#checks-table .integrations-cell, -#checks-table .timeout-cell { - white-space: nowrap; -} - -.url-cell .base { - color: var(--text-muted); -} - .my-checks-url { font-family: "Lucida Console", Monaco, monospace; font-size: 11.7px; position: relative; line-height: 36px; + white-space: nowrap; +} + +.my-checks-url .base { + color: var(--text-muted); } .checks-subline-duration { diff --git a/templates/front/my_checks_desktop.html b/templates/front/my_checks_desktop.html index 6daa3ad5..d38f468f 100644 --- a/templates/front/my_checks_desktop.html +++ b/templates/front/my_checks_desktop.html @@ -52,13 +52,7 @@ {% for check in checks %} - - +
@@ -78,17 +72,15 @@ {% endfor %}
- + {{ ping_endpoint }}{{ check.code }} - - + {% if channels|length <= 10 %}
{% spaceless %} @@ -101,7 +93,7 @@ {{ check.channel_set.all|length }} of {{ channels|length }} {% endif %} - +
{% endif %} -