Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
small ui fixes
  • Loading branch information
tabacitu committed Oct 22, 2025
commit d6220fce6b9ce406a3f33ced2081e2c65b9c3e56
4 changes: 2 additions & 2 deletions app/Http/Controllers/Admin/MonsterCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ public function setupListOperation()
'element' => 'span',
'class' => function ($crud, $column, $entry, $related_key) {
if ($column['text'] == 'Yes') {
return 'badge rounded-pill bg-success';
return 'badge rounded-pill bg-success text-white';
}

return 'badge rounded-pill bg-danger';
return 'badge rounded-pill bg-danger text-white';
},
],
],
Expand Down
6 changes: 3 additions & 3 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
function backpack_pro_badge(string $string = 'PRO')
{
return '<a href="https://backpackforlaravel.com/pricing" target="_blank" class="badge badge-pill bg-primary mx-2" tabindex="-1">'.$string.'</a>';
return '<a href="https://backpackforlaravel.com/pricing" target="_blank" class="badge badge-pill badge-sm bg-primary bg-primary-lt mx-2" tabindex="-1">'.$string.'</a>';
}
}

Expand All @@ -24,7 +24,7 @@ function backpack_pro_badge(string $string = 'PRO')
*/
function backpack_new_badge(string $string = 'NEW')
{
return '<span class="badge badge-pill bg-warning mx-2">'.$string.'</span>';
return '<span class="badge badge-pill badge-sm bg-warning bg-warning-lt mx-2">'.$string.'</span>';
}
}

Expand All @@ -38,6 +38,6 @@ function backpack_new_badge(string $string = 'NEW')
*/
function backpack_free_badge(string $string = 'FREE')
{
return '<span class="badge badge-pill bg-success mx-2">'.$string.'</span>';
return '<span class="badge badge-pill badge-sm bg-success bg-success-lt mx-2">'.$string.'</span>';
}
}
24 changes: 12 additions & 12 deletions resources/views/admin/partials/dataform-examples.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class="icon icon-1">
Quick Add Tag
</h3>
</div>
<div class="card-body bg-light">
<div class="card-body">

<x-backpack::dataform
id="quickAddTag"
Expand All @@ -68,7 +68,7 @@ class="icon icon-1">
Quick Edit Tag
</h3>
</div>
<div class="card-body bg-light">
<div class="card-body">

<x-backpack::dataform
id="quickEditTag"
Expand All @@ -91,14 +91,14 @@ class="icon icon-1">
Quick Add Invoice in a Modal
</h3>
</div>
<div class="card-body bg-light">
<div class="card-body">

<button
type="button"
class="btn btn-primary"
<button
type="button"
class="btn btn-primary"
data-bs-toggle="modal"
data-bs-target="#create_invoice"
bp-button="create"
bp-button="create"
data-style="zoom-in"
>
<i class="la la-plus"></i> <span>Create Invoice</span>
Expand All @@ -115,10 +115,10 @@ class="btn btn-primary"
Quick Edit Invoice in a Modal
</h3>
</div>
<div class="card-body bg-light">
<button
type="button"
class="btn btn-primary"
<div class="card-body">
<button
type="button"
class="btn btn-primary"
data-bs-toggle="modal"
data-bs-target="#edit_invoice"
bp-button="create"
Expand All @@ -136,4 +136,4 @@ class="btn btn-primary"
</div>
</div>
</div>
</div>
</div>