Skip to content

Commit

Permalink
Don't center boolean checkbox in listview but give it extra padding o…
Browse files Browse the repository at this point in the history
…n the left
  • Loading branch information
nickdekruijk committed Nov 26, 2019
1 parent 61292d8 commit cefb02f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function listviewRow($row)
$response = $this->module('treeview') ? '<i></i>' : '';
foreach (explode(',', $this->module('index')) as $column) {
if ($row[$column] === true) {
$response .= '<span class="center"><i class="fa fa-check"></i></span>';
$response .= '<span><i class="fa fa-check"></i></span>';
} elseif ($this->columns($column, 'type') == 'pivot') {
$value = '';
foreach($row[$column] as $opt) {
Expand Down
1 change: 1 addition & 0 deletions src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ nav li:hover > ul > li {max-height:40px}
#listview .button.add {margin:7px}
#listview SPAN.center {text-align:center}
#listview SPAN.right {text-align:right}
#listview SPAN .fa-check {padding-left:1em}

#listview .table .canfilter > I {padding:5px 10px 5px 5px;opacity:0.2}
#listview .table .canfilter.activeFilter > I {opacity:1}
Expand Down

0 comments on commit cefb02f

Please sign in to comment.