code refactoring for title component

This commit is contained in:
Burak Civan 2022-08-24 10:54:35 +03:00
parent ed5f27af20
commit 7f2bc78266

View File

@ -2,7 +2,7 @@
$slot_isHtml = strlen(strip_tags($slot)) < strlen($slot);
@endphp
@if (strlen($slot) >= 25 && $slot_isHtml != true)
@if (strlen($slot) >= 25 && ! $slot_isHtml)
<x-tooltip id="page-title" placement="bottom" message="{!! $slot !!}">
<div class="truncate" style="width: 22rem;">
{!! $slot !!}