Skip to content

Commit c1aa6cb

Browse files
Merge pull request #5794 from christianbeeznest/ofaj-21957-3
Internal: Align table headers and data to the left for stats page - refs BT#21957
2 parents 87561b6 + 2360e4b commit c1aa6cb

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

assets/css/app.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,12 @@ form .field {
857857
@apply mt-4;
858858
}
859859

860+
.stats_table {
861+
thead th {
862+
@apply bg-gray-20 text-gray-90 font-semibold text-left px-4 py-3 border-b border-gray-30;
863+
}
864+
}
865+
860866
//@import 'primevue-md-light-indigo/theme.css';
861867
//@import '~primevue/resources/primevue.min.css';
862868
//@import '~primeflex/primeflex.css';

public/main/admin/statistics/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@
930930
);
931931

932932
$scoreDisplay = ScoreDisplay::instance();
933-
$table = new HTML_Table(['class' => 'table table-hover table-striped data_table']);
933+
$table = new HTML_Table(['class' => 'table table-hover table-striped data_table stats_table']);
934934
$headers = [
935935
get_lang('Name'),
936936
get_lang('Count'),

public/main/inc/lib/statistics.lib.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public static function printStats(
464464
$isFileSize = false
465465
) {
466466
$total = 0;
467-
$content = '<table class="table table-hover table-striped data_table" cellspacing="0" cellpadding="3" width="90%">
467+
$content = '<table class="table table-hover table-striped data_table stats_table" cellspacing="0" cellpadding="3" width="90%">
468468
<thead><tr><th colspan="'.($showTotal ? '4' : '3').'">'.$title.'</th></tr></thead><tbody>';
469469
$i = 0;
470470
foreach ($stats as $subtitle => $number) {
@@ -1299,7 +1299,7 @@ public static function buildJsChartData($all, $chartName)
12991299
}
13001300

13011301
$scoreDisplay = ScoreDisplay::instance();
1302-
$table = new HTML_Table(['class' => 'data_table']);
1302+
$table = new HTML_Table(['class' => 'data_table stats_table']);
13031303
$headers = [
13041304
get_lang('Name'),
13051305
get_lang('Count'),
@@ -1382,7 +1382,7 @@ public static function printLoginsByDate()
13821382
);
13831383
}
13841384

1385-
$table = new HTML_Table(['class' => 'data_table']);
1385+
$table = new HTML_Table(['class' => 'data_table stats_table']);
13861386
$table->setHeaderContents(0, 0, get_lang('Username'));
13871387
$table->setHeaderContents(0, 1, get_lang('First name'));
13881388
$table->setHeaderContents(0, 2, get_lang('Last name'));

0 commit comments

Comments
 (0)