From 45b91e8e8021be81f0301906892bfe2a1b0b372d Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Sun, 17 Feb 2019 19:32:09 +0000 Subject: [PATCH] Fix copy&paste button on /config, move pre style to CSS Signed-off-by: Julius Volz --- web/ui/static/css/config.css | 11 +++++++++++ web/ui/templates/config.html | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/web/ui/static/css/config.css b/web/ui/static/css/config.css index e0d331588..b66269eea 100644 --- a/web/ui/static/css/config.css +++ b/web/ui/static/css/config.css @@ -1,3 +1,14 @@ .btn { border-radius: 0; } + +#config_yaml { + display: block; + padding: 9.5px; + font-size: 13px; + color:#333; + word-break: break-all; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px; +} diff --git a/web/ui/templates/config.html b/web/ui/templates/config.html index 2620ec975..3aa4dd88b 100644 --- a/web/ui/templates/config.html +++ b/web/ui/templates/config.html @@ -5,7 +5,8 @@ {{define "content"}}
-

Configuration

-
{{.}}
+

Configuration

+ +
{{.}}
{{end}}