mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix copy&paste button on /config, move pre style to CSS
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
cd569b51d9
commit
45b91e8e80
|
@ -1,3 +1,14 @@
|
||||||
.btn {
|
.btn {
|
||||||
border-radius: 0;
|
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;
|
||||||
|
}
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<h2 id="configuration">Configuration</h2>
|
<h2 id="configuration">Configuration <button type="button" class="btn btn-primary" id="copyToClipboard">Copy to clipboard</button></h2>
|
||||||
<pre style="display:block; padding:9.5px; font-size:13px; color:#333; word-break:break-all; background-color:#f5f5f5; border:1px solid #ccc; border-radius:4px; ">{{.}}</pre>
|
|
||||||
|
<pre id="config_yaml">{{.}}</pre>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue