Skip to content

Commit 5987c6d

Browse files
committed
Fixed profile picture display: none when using custom color scheme
@lastsamurai26
1 parent 16c3a54 commit 5987c6d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

resources/views/layouts/sidebar.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,11 @@
429429
<li class="nav-item dropdown">
430430
<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">
431431
@if(file_exists(base_path(findAvatar(Auth::user()->id))))
432-
<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;">
432+
<img src="{{ url(findAvatar(Auth::user()->id)) }}" alt="User-Profile" class="img-fluid avatar avatar-40 avatar-rounded" style="object-fit:cover;">
433433
@elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
434434
<img src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" alt="User-Profile" class="img logo" style="width:auto;height:30px;">
435435
@else
436-
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" alt="User-Profile" class="theme-color-default-img img-fluid avatar avatar-40 avatar-rounded">
436+
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" alt="User-Profile" class="img-fluid avatar avatar-40 avatar-rounded">
437437
@endif
438438
<div class="caption ms-3 d-none d-md-block ">
439439
<h6 class="mb-0 caption-title">{{Auth::user()->name}}</h6>
@@ -494,7 +494,7 @@
494494
</div>
495495
<div style="z-index:0!important;" class="iq-header-img">
496496
@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
497-
<img src="{{$headerImage}}" draggable="false" alt="header" class="theme-color-default-img img-fluid w-100 h-100 animated-scaleX">
497+
<img src="{{$headerImage}}" draggable="false" alt="header" class="img-fluid w-100 h-100 animated-scaleX">
498498
<img src="{{$headerImage}}" draggable="false" alt="header" class="theme-color-purple-img img-fluid w-100 h-100 animated-scaleX">
499499
<img src="{{$headerImage}}" draggable="false" alt="header" class="theme-color-blue-img img-fluid w-100 h-100 animated-scaleX">
500500
<img src="{{$headerImage}}" draggable="false" alt="header" class="theme-color-green-img img-fluid w-100 h-100 animated-scaleX">

resources/views/studio/page.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@
179179
</style>
180180
<div class="profile-img position-relative me-3 mb-3 mb-lg-0 profile-logo profile-logo1">
181181
@if(file_exists(base_path(findAvatar(Auth::user()->id))))
182-
<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;">
182+
<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;">
183183
@elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
184-
<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">
184+
<img src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" class="img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false">
185185
@else
186-
<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">
186+
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" class="img-fluid rounded-pill avatar-100 bg-white" width="100" height="100" draggable="false">
187187
@endif
188188
@if(file_exists(base_path(findAvatar(Auth::user()->id))))
189189
<div class="upload-icone bg-primary">

0 commit comments

Comments
 (0)