Skip to content

Commit

Permalink
Merge pull request #34 from tuandm/fix-avatar-pixelated-on-menubar
Browse files Browse the repository at this point in the history
Change the avatar size to prevent pixelated on higher resolution screen
  • Loading branch information
tuandm authored Apr 17, 2019
2 parents 5baef09 + 467f258 commit edfa0a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function user(Request $request)
{
$user = User::find(Auth::user()->id);
$user->roles = [$user->role];
$user->avatar = 'http://i.pravatar.cc/32';
$user->avatar = 'http://i.pravatar.cc';
return response()->json([
'status' => 'success',
'data' => $user
Expand Down
4 changes: 2 additions & 2 deletions resources/js/layout/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
<div class="avatar-wrapper">
<img :src="avatar+'?imageView2/1/w/80/h/80'" class="user-avatar">
<img :src="avatar+'/128'" class="user-avatar">
<i class="el-icon-caret-bottom" />
</div>
<el-dropdown-menu slot="dropdown">
Expand Down Expand Up @@ -149,7 +149,7 @@ export default {
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 10px;
border-radius: 4px;
}
.el-icon-caret-bottom {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/views/dashboard/admin/components/BoxCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<el-progress :percentage="12"/>
</div>
<div class="progress-item">
<span>HTML & CSS</span>
<span>HTML &amp; CSS</span>
<el-progress :percentage="100" status="success"/>
</div>
</div>
Expand Down

0 comments on commit edfa0a8

Please sign in to comment.