Fixed profile picture display: none when using custom color scheme

@lastsamurai26
This commit is contained in:
Julian Prieber 2023-06-02 20:11:04 +02:00
parent 16c3a54198
commit 5987c6d0e0
2 changed files with 6 additions and 6 deletions

View File

@ -429,11 +429,11 @@ $usrhandl = Auth::user()->littlelink_name;
<li class="nav-item dropdown">
<a class="py-0 nav-link d-flex align-items-center dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false" data-bs-target="#navbarDropdownIcon">
@if(file_exists(base_path(findAvatar(Auth::user()->id))))
<img src="{{ url(findAvatar(Auth::user()->id)) }}" alt="User-Profile" class="theme-color-default-img img-fluid avatar avatar-40 avatar-rounded" style="object-fit:cover;">
<img src="{{ url(findAvatar(Auth::user()->id)) }}" alt="User-Profile" class="img-fluid avatar avatar-40 avatar-rounded" style="object-fit:cover;">
@elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
<img src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" alt="User-Profile" class="img logo" style="width:auto;height:30px;">
@else
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" alt="User-Profile" class="theme-color-default-img img-fluid avatar avatar-40 avatar-rounded">
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" alt="User-Profile" class="img-fluid avatar avatar-40 avatar-rounded">
@endif
<div class="caption ms-3 d-none d-md-block ">
<h6 class="mb-0 caption-title">{{Auth::user()->name}}</h6>
@ -494,7 +494,7 @@ $usrhandl = Auth::user()->littlelink_name;
</div>
<div style="z-index:0!important;" class="iq-header-img">
@php if(file_exists(base_path("assets/dashboard-themes/header.png"))){$headerImage = asset('assets/dashboard-themes/header.png');}else{$headerImage = asset('assets/images/dashboard/top-header-overlay.png');} @endphp
<img src="{{$headerImage}}" draggable="false" alt="header" class="theme-color-default-img img-fluid w-100 h-100 animated-scaleX">
<img src="{{$headerImage}}" draggable="false" alt="header" class="img-fluid w-100 h-100 animated-scaleX">
<img src="{{$headerImage}}" draggable="false" alt="header" class="theme-color-purple-img img-fluid w-100 h-100 animated-scaleX">
<img src="{{$headerImage}}" draggable="false" alt="header" class="theme-color-blue-img img-fluid w-100 h-100 animated-scaleX">
<img src="{{$headerImage}}" draggable="false" alt="header" class="theme-color-green-img img-fluid w-100 h-100 animated-scaleX">

View File

@ -179,11 +179,11 @@
</style>
<div class="profile-img position-relative me-3 mb-3 mb-lg-0 profile-logo profile-logo1">
@if(file_exists(base_path(findAvatar(Auth::user()->id))))
<img src="{{ url(findAvatar(Auth::user()->id)) }}" class="theme-color-default-img img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false" style="object-fit:cover;">
<img src="{{ url(findAvatar(Auth::user()->id)) }}" class="img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false" style="object-fit:cover;">
@elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
<img src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" class="theme-color-default-img img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false">
<img src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" class="img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false">
@else
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" class="theme-color-default-img img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false">
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" class="img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false">
@endif
@if(file_exists(base_path(findAvatar(Auth::user()->id))))
<div class="upload-icone bg-primary">