Merge pull request #2607 from brkcvn/master

Code refactoring for title component
This commit is contained in:
Burak Civan 2022-08-24 10:55:15 +03:00 committed by GitHub
commit c2c8568ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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