Merge pull request #2602 from brkcvn/page-title
Long text controlled for Page Title
This commit is contained in:
commit
910e00e394
@ -2,7 +2,9 @@
|
|||||||
<div class="w-full lg:w-1/2">
|
<div class="w-full lg:w-1/2">
|
||||||
<div class="border-b px-2 pb-3">
|
<div class="border-b px-2 pb-3">
|
||||||
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
|
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
|
||||||
{!! $title !!}
|
<x-title>
|
||||||
|
{!! $title !!}
|
||||||
|
</x-title>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p class="mt-6 text-sm">
|
<p class="mt-6 text-sm">
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
<div class="w-full sm:w-6/12 items-center mb-3 sm:mb-0">
|
<div class="w-full sm:w-6/12 items-center mb-3 sm:mb-0">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
|
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
|
||||||
{!! $title !!}
|
<x-title>
|
||||||
|
{!! $title !!}
|
||||||
|
</x-title>
|
||||||
|
|
||||||
@yield('dashboard_action')
|
@yield('dashboard_action')
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
<div class="w-full sm:w-6/12 items-center mb-3 sm:mb-0">
|
<div class="w-full sm:w-6/12 items-center mb-3 sm:mb-0">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
|
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
|
||||||
{!! $title !!}
|
<x-title>
|
||||||
|
{!! $title !!}
|
||||||
|
</x-title>
|
||||||
|
|
||||||
@yield('dashboard_action')
|
@yield('dashboard_action')
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
<div class="w-full sm:w-6/12 items-center mb-3 sm:mb-0">
|
<div class="w-full sm:w-6/12 items-center mb-3 sm:mb-0">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
|
<h1 class="flex items-center text-2xl xl:text-5xl text-black font-light -ml-0.5">
|
||||||
{!! $title !!}
|
<x-title>
|
||||||
|
{!! $title !!}
|
||||||
|
</x-title>
|
||||||
|
|
||||||
@yield('dashboard_action')
|
@yield('dashboard_action')
|
||||||
</h1>
|
</h1>
|
||||||
|
9
resources/views/components/title.blade.php
Normal file
9
resources/views/components/title.blade.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
@if (strlen($slot) >= 25 )
|
||||||
|
<x-tooltip id="page-title" placement="bottom" message="{!! $slot !!}">
|
||||||
|
<div class="truncate" style="width: 22rem;">
|
||||||
|
{!! $slot !!}
|
||||||
|
</div>
|
||||||
|
</x-tooltip>
|
||||||
|
@else
|
||||||
|
{!! $slot !!}
|
||||||
|
@endif
|
Loading…
x
Reference in New Issue
Block a user