Merge pull request #2606 from brkcvn/master

Tooltip appear in Dashboard title
This commit is contained in:
Burak Civan 2022-08-24 10:34:33 +03:00 committed by GitHub
commit ed5f27af20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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