add overflow text for header-email

parent 70515ced
...@@ -11,6 +11,19 @@ ...@@ -11,6 +11,19 @@
text-align: right; text-align: right;
} }
#navbar,
#navbar ul,
#navbar ul li.dropdown,
#navbar ul li.dropdown span
{
overflow: hidden;
}
#navbar ul li.dropdown span
{
text-overflow: ellipsis;
}
.b-auth-wrap .b-auth-wrap
{ {
......
...@@ -34,14 +34,11 @@ ...@@ -34,14 +34,11 @@
<nav id="navbar" class="navbar"> <nav id="navbar" class="navbar">
<ul> <ul>
@auth @auth
<?php /*?>
@php
$email = auth()->user()->email; $email = auth()->user()->email;
//$email_brief = 'aa.chaplyginchaplyginchaplyginchaplyginchaplyginchaplygin@gmail.com';
$email_brief = (strlen($email) > 30) ? substr_replace($email, '...', 5, 25) : $email; $email_brief = (strlen($email) > 30) ? substr_replace($email, '...', 5, 25) : $email;
@endphp <?php */ ?>
<li class="dropdown"><a href="#"><span class="fw-bold">{{ auth()->user()->email }}</span> <i class="bi bi-chevron-down"></i></a>
<li class="dropdown"><a href="#"><span class="fw-bold">{{ $email_brief }}</span> <i class="bi bi-chevron-down"></i></a>
<ul> <ul>
<li><a href="{{ url('settings') }}">Налаштування</a></li> <li><a href="{{ url('settings') }}">Налаштування</a></li>
<li><a href="{{ route('logout') }}">Вийти</a></li> <li><a href="{{ route('logout') }}">Вийти</a></li>
......
@extends('layouts.layout')
@section('head_content')
@php
//dump(Auth::check());
//dump(auth()->check());
@endphp
@endsection
@section('content')
<style>
.b-wrap
{
height: calc(100vh - 160px);
}
</style>
<section>
<div class="b-wrap d-flex align-items-center justify-content-center">
<a class="btn btn-email" href="#" role="button">Продовжити за допомогою e-mail</a>
</div>
</section>
@endsection
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment