Skip to content

Commit

Permalink
Updated styling to improve scheduler with checkbox; luyadev#318
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaaarc authored and slowfox089 committed Dec 10, 2020
1 parent fbe2e01 commit 8c4bd93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ngrest/plugins/ToggleStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function renderUpdate($id, $ngModel)
{
if ($this->scheduling && $this->renderContext->canUpdate()) {
return [
'<div class="crud-loader-tag">' . $this->createSchedulerListTag($ngModel, $this->getSchedulerValuesAsArray(), 'data.update', ['only-icon' => 1]) . '</div>',
'<div class="crud-loader-tag crud-loader-tag-for-checkbox">' . $this->createSchedulerListTag($ngModel, $this->getSchedulerValuesAsArray(), 'data.update', ['only-icon' => 1]) . '</div>',
$this->renderCreate($id, $ngModel),
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/resources/dist/main.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/resources/scss/components/_crud.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
position: relative;
right: 0;

&-for-checkbox {
margin-top: -6px;
}

.btn {
padding: 6px 9px;
}
Expand Down

0 comments on commit 8c4bd93

Please sign in to comment.