Commit 63052f76 authored by MaxSol1's avatar MaxSol1
Browse files

center ack text

parent 958baf4a
......@@ -42,9 +42,9 @@ export function CheckCard({options, slug, dashboard}) {
}, [options.objectType, options.filter, options.perfDataSelection]);
return <div class={"check-content card " + checkState + " " + `${checkState}-${acknowledged}`}>
<div class="check-state" style={`font-size: ${options.statusFontSize}px;` + `line-height: 1.1;`}>
{perfValue ? Number(perfValue.replace(/[^\d.-]/g, '')) : checkState}
{acknowledged ? <span><br/><span style="margin-left: 50px;">{acknowledged ? "(ACK)" : ""}</span></span> : ""}
<div class="check-state" style={`font-size: ${options.statusFontSize}px; line-height: 1.1;`}>
{perfValue ? Number(perfValue.replace(/[^\d.-]/g, '')) : <div class="align-center">{checkState}</div>}
{acknowledged ? <span>(ACK)</span> : ""}
</div>
</div>
}
......
......@@ -892,6 +892,10 @@ a#a-link {
height: 100% !important;
}
.align-center {
text-align: center;
}
a#text-link {
position: relative;
display: block;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment