refactoring
This commit is contained in:
parent
ad9b6928f2
commit
353213860d
@ -63,7 +63,7 @@
|
|||||||
</x-table.td>
|
</x-table.td>
|
||||||
|
|
||||||
<x-table.td class="w-6/12 sm:w-5/12">
|
<x-table.td class="w-6/12 sm:w-5/12">
|
||||||
<x-slot name="first" class="flex">
|
<x-slot name="first" class="flex font-bold">
|
||||||
{{ $item->name }}
|
{{ $item->name }}
|
||||||
|
|
||||||
@if (! $item->enabled)
|
@if (! $item->enabled)
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
<x-table.td class="w-8/12 sm:w-4/12">
|
<x-table.td class="w-8/12 sm:w-4/12">
|
||||||
<x-slot name="first" class="flex" override="class">
|
<x-slot name="first" class="flex" override="class">
|
||||||
<div class="font-medium truncate">
|
<div class="font-bold truncate">
|
||||||
{{ $item->name }}
|
{{ $item->name }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
$first_attributes = $first->attributes;
|
$first_attributes = $first->attributes;
|
||||||
|
|
||||||
if ((! $first->attributes->has('override')) || ($first->attributes->has('override') && ! in_array('class', explode(',', $first->attributes->get('override'))))) {
|
if ((! $first->attributes->has('override')) || ($first->attributes->has('override') && ! in_array('class', explode(',', $first->attributes->get('override'))))) {
|
||||||
$first_attributes = $first->attributes->merge(['class' => 'font-bold truncate']);
|
$first_attributes = $first->attributes->merge(['class' => 'font-medium truncate']);
|
||||||
}
|
}
|
||||||
@endphp
|
@endphp
|
||||||
<div {{ $first_attributes }}>
|
<div {{ $first_attributes }}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user