Skip to content

Commit

Permalink
increased user avatar size on navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
amiyasahu committed Nov 4, 2014
1 parent a5d5830 commit dcd9589
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css/donut.css
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ div .header-banner {
}
/* reduce padding for the userimage at the navbar */
.navbar-nav > li > a.navbar-user-img {
padding: 10px;
padding: 5px 10px;
}
/* small caret at the dropdown menu */
.navbar-nav:not(.navbar-right) li .dropdown-menu {
Expand Down
2 changes: 1 addition & 1 deletion less/donut.less
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ div {
}
/* reduce padding for the userimage at the navbar */
.navbar-nav>li>a.navbar-user-img {
padding: 10px;
padding: 5px 10px;
}

/* small caret at the dropdown menu */
Expand Down
4 changes: 2 additions & 2 deletions templates/user-loggedin-drop-down.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
$useraccount=qa_db_select_with_pending(qa_db_user_account_selectspec($userid, true) );

$logged_in_user_avatar = qa_get_user_avatar_html($useraccount['flags'], $useraccount['email'], null ,
$useraccount['avatarblobid'], $useraccount['avatarwidth'], $useraccount['avatarheight'], 30);
$useraccount['avatarblobid'], $useraccount['avatarwidth'], $useraccount['avatarheight'], 40);

if (empty($logged_in_user_avatar)) {
// if the default avatar is not set by the admin , then take the default
$logged_in_user_avatar = '<img src="'.DONUT_THEME_ROOT_URL.'/images/default-profile-pic.png" width="30" height="30" class="qa-avatar-image" alt="">';
$logged_in_user_avatar = '<img src="'.DONUT_THEME_ROOT_URL.'/images/default-profile-pic.png" width="40" height="40" class="qa-avatar-image" alt="">';
}

if (isset($this->content['navigation']['user']['updates'])) {
Expand Down

0 comments on commit dcd9589

Please sign in to comment.