refactoring

This commit is contained in:
Burak Civan 2022-09-09 10:45:16 +03:00
parent ad9b6928f2
commit 353213860d
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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>

View File

@ -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 }}>