From 0a12bc7c0889dd1d1b3aaa38bec585d5986a7ccb Mon Sep 17 00:00:00 2001 From: alexandergull Date: Mon, 15 Apr 2024 10:21:51 +0500 Subject: [PATCH 1/2] Upd. Settings. Checkboxes label tag is clickable now. --- uniforce/lib/Cleantalk/USP/Layout/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniforce/lib/Cleantalk/USP/Layout/Field.php b/uniforce/lib/Cleantalk/USP/Layout/Field.php index 63b518d..4bc67fe 100644 --- a/uniforce/lib/Cleantalk/USP/Layout/Field.php +++ b/uniforce/lib/Cleantalk/USP/Layout/Field.php @@ -154,7 +154,7 @@ public function draw_element__checkbox() { .($this->child_fields ? ' onchange="uspSettingsDependencies([\''.implode("','",$this->child_fields).'\'])"' : '') .' />'; echo isset($this->title) - ? '' + ? '' : ''; echo $this->description ?'
'. $this->description .'
' From 46545a451ee5c663f3f565cb3f17f342d7b0b7f1 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Mon, 15 Apr 2024 10:50:02 +0500 Subject: [PATCH 2/2] Upd. Settings. Scanner results. Path column text is column-wide now. --- uniforce/css/settings-table.css | 10 ++++++++-- uniforce/inc/scanner.php | 5 ++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/uniforce/css/settings-table.css b/uniforce/css/settings-table.css index 1a65195..2eaa5dc 100644 --- a/uniforce/css/settings-table.css +++ b/uniforce/css/settings-table.css @@ -50,12 +50,18 @@ tbody{ vertical-align: top; padding: 8px 10px; } - tbody tr td{ position: relative;} + tbody tr td { + position: relative; + } tfoot{ border: 1px solid #ccd0d4; } +.column-path { + word-break: break-word !important; +} + [disabled]:hover{cursor: not-allowed;} .tbl-width--50px{width: 50px;} @@ -131,4 +137,4 @@ tr:hover .row-actions span.tbl-row_action--approve{color: #0a0;} border: 1px solid rgb(51, 51, 51); border-radius: 5px; z-index: 20; -} \ No newline at end of file +} diff --git a/uniforce/inc/scanner.php b/uniforce/inc/scanner.php index eb45e37..a77a924 100644 --- a/uniforce/inc/scanner.php +++ b/uniforce/inc/scanner.php @@ -304,15 +304,14 @@ function spbc_scanner__display__prepare_data__files( &$table ){ unset($row->actions['view_bad']); if( isset( $row->status ) && $row->status === 'quarantined' ) unset($row->actions['quarantine']); - $table->items[] = array( 'cb' => $row->fast_hash, 'uid' => $row->fast_hash, 'size' => substr(number_format($row->size, 2, ',', ' '), 0, -3), 'perms' => $row->perms, 'mtime' => date('M d Y H:i:s', $row->mtime), - 'path' => strlen($root.$row->path) >= 40 - ? '
...' . substr($row->path, -40) . '
' . $root . $row->path . '
' + 'path' => strlen($root . $row->path) >= 120 + ? '
...' . substr($row->path, -120) . '
' . $root . $row->path . '
' : $root . $row->path, 'actions' => $row->actions, );