Merge pull request #2602 from brkcvn/page-title

Long text controlled for Page Title
This commit is contained in:
Burak Civan 2022-08-16 15:24:11 +03:00 committed by GitHub
commit 910e00e394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 4 deletions

View File

@ -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">

View File

@ -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>

View File

@ -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>

View File

@ -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>

View 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