Merge pull request #16410 from snipe/#16407_component_checkout_and_notes_fix

Fixed #16407 - weird layout on components for non super user
This commit is contained in:
snipe 2025-03-04 15:38:20 +00:00 committed by GitHub
commit acaa3a28e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,7 +199,7 @@
<div class="col-md-12">
{!! nl2br(Helper::parseEscapedMarkedownInline($component->notes)) !!}
</div>
</div>
@endif
@can('update', $component)
@ -211,7 +211,7 @@
</div>
@endcan
@can('checkout', Component::class)
@can('checkout', $component)
<div class="col-md-12 hidden-print" style="padding-top: 5px;">
<a href="{{ route('components.checkout.show', $component->id) }}" class="btn btn-sm bg-maroon btn-social btn-block hidden-print">
<x-icon type="checkout" />