backend controlled for title component
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
@php
|
||||
$slot_isHtml = strlen(strip_tags($slot)) < strlen($slot);
|
||||
|
||||
$slot_is_string = strval(strlen($slot));
|
||||
@endphp
|
||||
|
||||
@if (strlen($slot) >= 25 && ! $slot_isHtml)
|
||||
@if ($slot_is_string >= $textSize && ! $slot_isHtml)
|
||||
<x-tooltip id="page-title" placement="bottom" message="{!! $slot !!}">
|
||||
<div class="truncate" style="width: 22rem;">
|
||||
{!! $slot !!}
|
||||
|
Reference in New Issue
Block a user