From 995c887946cb01f7975fa1bfebb1ffa842d99ac4 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 24 Jan 2021 05:44:03 +0700 Subject: zone.d: pretty print the resource record (RR) value If the RR value is object print the value as "key=value,...". --- _www/zone.d/index.html | 43 ++++++++++++++++++++++++++++++++++--------- memfs_generate.go | 4 ++-- 2 files changed, 36 insertions(+), 11 deletions(-) diff --git a/_www/zone.d/index.html b/_www/zone.d/index.html index b8b3f46..7a355da 100644 --- a/_www/zone.d/index.html +++ b/_www/zone.d/index.html @@ -31,10 +31,10 @@ .action-delete { margin-left: 1em; } - .actions { + div.actions { padding: 1em; } - .actions button { + div.actions button { width: 100%; } @@ -51,6 +51,9 @@ font-family: monospace; width: 100%; } + .rr > * { + vertical-align: middle; + } .rr.header { font-weight: bold; } @@ -69,8 +72,12 @@ } .rr > .value { display: inline-block; + width: 20em; word-wrap: break-word; } + .rr > .actions { + display: inline-block; + } @@ -182,7 +189,7 @@ oninput="updateSOA('Expire', parseInt(this.value))" /> ? -