Skip to content

Commit 12cc715

Browse files
author
jokob-sk
committed
#951, small fixes
1 parent 6752b7f commit 12cc715

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

front/css/app.css

+1-10
Original file line numberDiff line numberDiff line change
@@ -949,16 +949,6 @@ height: 50px;
949949
top:0px;
950950
}
951951

952-
.overview-section
953-
{
954-
/* border-top: solid;
955-
border-width: medium;
956-
border-width: medium;
957-
border-width: 1px;
958-
border-radius: 15px;
959-
margin-bottom: 3px; */
960-
961-
}
962952

963953
.settings-group i{
964954
font-size: 16px;
@@ -1622,6 +1612,7 @@ input[readonly] {
16221612
/* ----------------------------------------------------------------- */
16231613

16241614

1615+
16251616
.plugin-filters
16261617
{
16271618
margin: 7px;

front/css/dark-patch.css

+4
Original file line numberDiff line numberDiff line change
@@ -737,3 +737,7 @@ input[type="password"]::-webkit-caps-lock-indicator {
737737
color:#000 !important;
738738
}
739739

740+
.thresholdFormControl
741+
{
742+
color:#000;
743+
}

front/css/system-dark-patch.css

+5
Original file line numberDiff line numberDiff line change
@@ -739,4 +739,9 @@
739739
.callout code {
740740
background-color: #fff !important;
741741
color:#000 !important;
742+
}
743+
744+
.thresholdFormControl
745+
{
746+
color:#000;
742747
}

front/pluginsCore.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function processColumnValue(dbColumnDef, value, index, type) {
153153
$.each(dbColumnDef.options, function(index, obj) {
154154
if(Number(value) < Number(obj.maximum) && valueTmp == '')
155155
{
156-
valueTmp = `<div style="background-color:${obj.hexColor}">${value}</div>`
156+
valueTmp = `<div class="thresholdFormControl" style="background-color:${obj.hexColor}">${value}</div>`
157157
// return;
158158
}
159159
});
@@ -371,7 +371,7 @@ function getHistoryData(prefix, colDefinitions, pluginObj) {
371371
// Extract history data for the plugin, limiting to the first 50 entries for performance
372372
return pluginHistory
373373
.filter((history, index) => history.Plugin === prefix && index < 50) // Filter history for the specific plugin
374-
.map(history => colDefinitions.map(colDef => history[colDef.column] || '')); // Map to the defined columns
374+
.map(object => colDefinitions.map(colDef => getFormControl(colDef, object[colDef.column], object["Index"], colDefinitions, object)));
375375
}
376376

377377
function generateTabNavigation(prefix, objectCount, eventCount, historyCount) {

0 commit comments

Comments
 (0)