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